# E0 AI Bot is based on the message, it prints the answer with the highest probability using probability from the database.

### Related tags

Third-party APIs Wrappers E0

# E0 AI Chat Bot

Based on the message, it prints the answer with the highest probability using probability from the database.

# Install on linux (Arch,Debian,Termux)

``````git clone https://github.com/TheSadError/E0
cd E0
pip install -r requirements.txt
python3 E0.py # this is for run E0
``````

# Explaination

## E0 Probability Algorithm For AI

```def probability(um, rw, schat=False, req=[]):
count = 0
hw = True
for w in um:
if w in rw:
count += 1
per = float(count) / float(len(rw))
for w in req:
if w not in um:
hw = False
break
if hw or schat:
return int(per * 100)
else:
return 0```

## E1 Packet

This packet for advice codes and if there any result for message. It will write `I didnt understand sorry... Please reply.` or something.

```import random
advicelist = ["You can Improve my code. Its so simple...","You can play a game...","You may learn new programming language...","You can star my github repo."]
gamelist = ["Fortnite","Valorant","Far Cry 5","GTA V","Tomb Rider","Control","Far Cry 6","Snake Game","Football","Basketball"]
R_EATING = "Ummm... You may eat pasta. But my favorite foods are : CPU and RAM. They are awsome. You must try!"
R_GAME = random.choice(gamelist)

def unknown():
response = ["Could you please re-phrase that? ",
"...",
"What does that mean?"][
random.randrange(5)]
return response```

## Data base :

Explaination : if user writed : hi after that bot will say `Hello!` Because `hi` is in `['hello', 'hi', 'hey', 'sup', 'heyo','hola','salam','merhaba']` list. It works like this

```    dns('Hello!', ['hello', 'hi', 'hey', 'sup', 'heyo','hola','salam','merhaba','selam','السلام عليكم','عليكم','السلام'], schat=True)
dns('See you!', ['bye', 'goodbye'], schat=True)
dns('I\'m doing fine, and you?', ['how', 'are', 'you', 'doing'], req=['how'])
dns('You\'re welcome!', ['thank', 'thanks'], schat=True)
dns('Thank you!', ['i', 'love', 'code', 'palace'], req=['code', 'palace'])
dns('Sure!',['want', 'to', 'be', 'my','friend'],schat=True)
dns('My name is E0. And I created by Err0r. Err0r is python,cpp and ruby developer and competitive programmer.',['name', 'who', 'who are you', 'who are you', 'who are you?','are you?','are you'],schat=True)
dns('I know python,c and java script languages.',['want', 'ruby', 'cpp', 'python','which language','do you know ?','know?','know','programming language'],schat=True)
dns('',["play?","game?",'what we can do?','what we can do','what we can','what we can?','what can you do?','what can you do','what can you?',"what can you"],schat=True)
dns('Yess...',['are you okey?','you okey?','you ok?','you okey'],schat=True)
dns('I am feeling bad.','I am sad. Hope you are better.',['feel?','how are you feel?','feelings?'],req='feel')
dns('Ah. I understand. I live in Github Repo. Write "github" for see it. My Discord :err0r#4018 ',['social','social media','discord','media'],schat=True)
dns('Some Music Advices : Old Town Road , Montero , SR - Welcome To Brixton , 6 For 6',['music','musik','muzik'],schat=True)

dns('WOW', ['wow', 'awsome', 'good', 'good' , 'col' ,'cool'], schat=True)
dns(E0.R_EATING, ['what', 'you', 'eat'], req=['you', 'eat'])
dns(E0.R_GAME, ['what', 'game', 'you','play'], req=['game', 'play'])

# People
dns("""Elon Musk, aka Elon Reeve Musk, is an engineer, industrial designer, tech entrepreneur,
and philanthropist. Apart from his birthplace of South Africa, he is a Canadian and US citizen
and lives in the USA, where he immigrated at the age of 20.
""",['elon musk','musk','elon'],schat=True)

dns("""William Henry Bill Gates III or better known as Bill Gates, American entrepreneur,
software developer, author, investor and businessman
""",['bill gates','bill','gates'],schat=True)

dns("""Jeffrey Preston Bezos is an American internet entrepreneur, industrialist, media owner, and investor,
best known as the founder, CEO, and chairman of the worldwide technology company Amazon. Before 2017,
Bezos, who was one of the first hundred billionaires on the Forbes wealth index list, became the richest
man in the world after 2017.
""",['jeff','bezos','jeff bezos'],schat=True)

dns("""John Christopher Depp II is an American actor, producer and musician. Nominated for ten Golden Globe Awards,
he was nominated for an Academy Award for Best Actor for his role as
the Demon Barber in Sweeney Todd: The Demonic Barber of Fleet Street.
""",['johnny','Johnny','depp','Depp','Johnny Depp','johnny depp'],schat=True)```

## Info Function

```def info():
print(Fore.BLUE+"""

-_________________-_________________-
|                                   |
|  |-_-| Welcome to E0 Bot!  |-_-|  |
-_________________-_________________-

Hi ? Are you there ? Ok... I will say
story. I created by Error. His other
name is TheSadError. He created my on
5 May 2022 . He used python3.9 . And he
added E1 packet for unknown things. It
working awsomely. And I am open source.
This means you can see my code and can edit
them for yourself. For this Error shared
my code in his own github repo. Let me explain
E0 logic. Logic :
User input a sentence or words probability
function searching for probability. Which words
probability suitability is bigger in database
E0 prints answear of the word base. Its simple AI.

""")```

## Some commands

``````[1] 'clear' : For clear chat
[2] 'exit'  : Break code and exit from E0
[4] 'help'  : To list commands
[5] 'dir'   : To dir files
[6] 'ls'    : To list files in directory
[7] 'face'  : To run face dedection
[8] 'info'  : To see E0's info
[8] 'snake' : To play snake game
``````

Donation :

``````TR05 0006 2000 0280 0009 0525 31
USD Type
``````

Copright To Error

##### A Bot Telegram Anti Users Channel to automatic ban users who using channel to send message in group.

Tg_Anti_UsersChannel A Bot Telegram Anti Users Channel to automatic ban users who using channel to send message in group. Features: Automatic ban Whit

##### Bot that embeds a random hysterical meme from Reddit into your text channel as an embedded message, using an API call.

Discord_Meme_Bot 🤣 Bot that embeds a random hysterical meme from Reddit into your text channel as an embedded message, using an API call. Add the bot

##### A simple bot which using an API , detects reported discord scams and kicks the user if possible while deleting the message

A simple bot which using an API , detects reported discord scams and kicks the user if possible while deleting the message

##### A Telegram Message Manager Bot by @AbirHasan2005

Messages-Manager-Bot A Telegram Message Manager Bot by @AbirHasan2005. This Bot can delete specific type of messages from Group. I specially use for @

##### Telegram bot for Whisper Message.

Whisper Bot @WhisperStarkBot A star ⭐ from you means a lot to us! Telegram bot for Whisper Message. Usage Deploy to Heroku Tap on above button and fil

##### Bill is a bot capable to Chat with you, search everything on web to you, and send message to yours contacts for you.

Bill Bot The inteligent Bot Bill is a intelligent bot, it can chat, search and send messages to you. Chat with You Send messages on WhatsApp for you S

##### Easy and simple, Telegram Bot to Show alert when some edits a message in Group

Edit-Message-Alert Just a simple bot to show alert when someone edits a message sent by them, Just 17 Lines of Code These codes are for those who incu

##### Automate TikTok follower bot, like bot, share bot, view bot and more using selenium

Zefoy TikTok Automator Automate TikTok follower bot, like bot, share bot, view bot and more using selenium. Click here to report bugs. Usage Download

###### Error
Competitive Programmer
###### A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

1 Oct 13, 2021
###### A listener for RF >= 4.0 that prints a Stack Trace to console to faster find the code section where the failure appears.

robotframework-stacktrace A listener for RF >= 4.0 that prints a Stack Trace to console to faster find the code section where the failure appears. Ins

16 Nov 24, 2022

16 Nov 10, 2022
###### GitGram Bot. Bot Then Message You Your Repo Starts, Forks, And Many More

Yet Another GitAlertBot Inspired From Dev-v2's GitGram Run Bot: Local Host Git Clone Repo : For Telethon Version : git clone https://github.com/TeamAl

2 Nov 24, 2021
###### A simple message content sniping Discord bot which you can run yourself! Sniping API pulled from isobot and Arch bot

Discord Snipe Bot This is a bot made with the same message content sniping API from isobot and Arch bot. It's default prefix is -, however you can als

5 Aug 11, 2022
###### A Dm Bot, also knows as Mass DM bot which can send one message to All of the Users in a Specific Server!

Discord DM Bot discord.py 1.7.2 python 3.9.5 asyncio 3.4.3 Installation Cloud Host Tutorial uploaded in YouTube, watch it by clicking here. Local Host

7 Mar 24, 2022
###### The scope of this project will be to build a data ware house on Google Cloud Platform that will help answer common business questions as well as powering dashboards

The scope of this project will be to build a data ware house on Google Cloud Platform that will help answer common business questions as well as powering dashboards.

2 Jan 20, 2022
###### A Telegram AntiChannel bot to ban users who using channel to send message in group

Anti-Channel-bot A Telegram AntiChannel bot to ban users who using channel to send message in group. BOT LINK: Features: Automatic ban Whitelist Unban

36 Oct 21, 2022