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

Overview

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_ADVICE = random.choice(advicelist)
R_GAME = random.choice(gamelist)

def unknown():
    response = ["Could you please re-phrase that? ",
                "...",
                "I didnt understand sorry... Please reply.",
                "Sounds about right.",
                "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_ADVICE, ['give', 'advice'], req=['advice'])
    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
[3] 'menu'  : To print menu (other functions Of bot)
[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
Name : Teymur Ahmetzade
USD Type

Copright To Error

Owner
Error
Competitive Programmer
Error
Reddit bot that uses sentiment analysis

Reddit Bot Project 2: Neural Network Boogaloo Reddit bot that uses sentiment analysis from NLTK.VADER WIP_WIP_WIP_WIP_WIP_WIP Link to test subreddit:

TpK 1 Oct 24, 2021
Information about the weather in a city written using Python

Information about the weather in a city Enter the desired city Climate information of the target city This program is written using Python programming

Amir Hussein Sharifnezhad 4 Nov 17, 2021
How to add reaction on message discord.py

BA / HR / RS: Python (discord.py) skripta pomocu koje dodajete reakciju na vasu poruku putem komande !v ili da se dodaje samo u nekoj odredjenoj sobi.

Seekii 3 Dec 23, 2021
This asynchronous telegram bot sells books.

Selling_Books_Bot Description Say, you have a bunch of items you need no more and you want to sell it all out. That's where you're going to have to us

Roman 1 Oct 24, 2021
Select random winners for a Twitter giveaway

twitter_picker Select random winners for a Twitter giveaway Once the Twitter giveaway (or airdrop) is closed, assign a number to each participant. The

Michael Rawner 1 Dec 11, 2021
Prime Mega is a modular bot running on python3 with autobots theme and have a lot features.

PRIME MEGA Prime Mega is a modular bot running on python3 with autobots theme and have a lot features. Easiest Way To Deploy On Heroku This Bot is Cre

『TØNIC』 乂 ₭ILLΣR 45 Dec 15, 2022
Video Stream: an Advanced Telegram Bot that's allow you to play Video & Music on Telegram Group Video Chat

Video Stream is an Advanced Telegram Bot that's allow you to play Video & Music on Telegram Group Video Chat 🧪 Get SESSION_NAME from below: Pyrogram

Jonathan 6 Feb 08, 2022
A Discord BOT that uses Google Sheets for storing the roles and permissions of a discord server.

Discord Role Manager Bot Role Manager is a discord BOT that utilizes Google Sheets for the organization of a server's hierarchy and permissions. Detai

Dion Rigatos 17 Oct 13, 2022
Telegram Link Wayback Bot. This bot archives a web page thrown at itself with wayback Machine (Archive.org).

Telegram Link Wayback Bot. This bot archives a web page thrown at itself with wayback Machine (Archive.org).

Hüzünlü Artemis [HuzunluArtemis] 11 Feb 18, 2022
A small Python app to create Notion pages from Jira issues

Jira to Notion This little program will capture a Jira issue and create a corresponding Notion subpage. Mac users can fetch the current issue from the

Dr. Kerem Koseoglu 12 Oct 27, 2022
Production Ontology Merging (PrOM) Framework

Production Ontology Merging (PrOM) Framework OWL 2 DL ontology merging framework tailored to the production domain Features preprocessing: translation

4 Nov 02, 2022
Playing around with the slack api for learning purposes

SlackBotTest Playing around with the slack api for learning purposes and getting people to contribute Reason for this Project: Bots are very versatile

1 Nov 24, 2021
Bot inspirado no Baidu Antivírus

Baidu Bot Bot inspirado no lendário Baidu Antivírus Informações O programa foi inteiramente feito em Python, sinta-se livre para fazer qualquer altera

Caio Eduardo de Albuquerque Magalhães 1 Dec 18, 2021
This repository is used to provide data to zzhack,

This repository is used to provide data to zzhack, but you don't have to care about anything, just write your thinking down, and you can see your thinking is rendered in zzhack perfectly

5 Apr 29, 2022
API generated by OpenAPI for nhentai.net

nhentai-api No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) This Python package is automati

Shikanime Deva 1 Nov 01, 2021
𝗖𝝠𝝦𝝩𝝠𝝞𝝥 𝝦𝗥𝝞𝗖𝝽°™️ 🇱🇰 Is An All In One Media Inline Bot Made For Inline Your Media Effectively With Some Advance Security Tools♥️

𝗖𝝠𝝦𝝩𝝠𝝞𝝥 𝝦𝗥𝝞𝗖𝝽° ™️ 🇱🇰 𝗙𝗘𝝠𝝩𝗨𝗥𝗘𝗦 Auto Filter IMDB Admin Commands Broadcast Index IMDB Search Inline Search Random Pics Ids & User I

Kɪꜱᴀʀᴀ Pᴇꜱᴀɴᴊɪᴛʜ Pᴇʀᴇʀᴀ 〄 13 Jun 21, 2022
A Bot, which observes your counting-abilities and controls your drinking-habits, too!

Discord Counting Bot with Beer-Counter Heavily inspired by AlexVerricos Counting_bot, but adjusted a lot for the beer drinking habits of students. Inv

Jakob Jung 3 Oct 18, 2022
Python client for ETAPI of Trilium Note.

Python client for ETAPI of Trilium Note.

33 Dec 31, 2022
Repositório para meu Discord Bot pessoal

BassetinhoBot Escrevi o código usando o Python 3.8.3 e até agora não tive problemas rodando nas versões mais recentes. Repositório para o Discord Bot

Vinícius Bassete 1 Jan 04, 2022
Python Proof of Concept for retrieving Now Playing on YouTube Music with TabFS

Youtube Music TabFS Python Proof of Concept for retrieving Now Playing on YouTube Music with TabFS. music_information = get_now_playing() pprint(music

Junho Yeo 41 Nov 06, 2022