Coder Social home page Coder Social logo

apinanyogaratnam / stews-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 20.88 MB

A discord bot that uses machine learning algorithms to give responses to questions and concerns about various topics

Home Page: https://Stews-Bot.stewietheangel.repl.co

Python 99.35% Shell 0.65%
discord-bot python3 flask chatbot bot machine-learning discord-py gtp-3 openai tensorflow

stews-bot's Introduction

Stews Bot

Description

Stews Bot is a Discord Bot that responds to commands, certain messages with trigger words, and uses various API's to respond with.

Commands

$hello

Sends a hello message to the user

$inspire

Inspirational quotes recieved from the https://zenquotes.io/ web API

$memes

Memes receieved from reddit API (this is in NO way, shape or form of an application made by reddit. Simply an application using reddit posts data) from the following subreddits:

  • r/dankmemes
  • r/Memes_Of_The_Dank
  • r/memes

$ml SOME_MSG_HERE

Uses tensorflow machine learning to build models, train data, and give user a response accordingly (natural language processing)

$q: SOME_QUESTION_HERE

uses the openai API to request a response using a prompt given by the user and sends that message
back to the server channel which the query was made (by the user) Image of Example calls and example responses

$help

Displays a list of commands the bot is capable of reading

Other

  • Reacts to custom emojis with the emojis used to the message (works on main server only)
  • when a sad word is detected, a positive message will appear
  • pls shirt command says ilya shirt coming soon)
  • mentioning @Stews Bot will give a message
  • when a user joins the server, Stews will give a welcoming message

TO-DO

  • Use db and store information
  • react to message of sad words (sadge, itsokitsok, pensive) <- randomly (not always)
  • make mlchatbot with user personal playground (using if statements to check user and global var for currently_in_ml_playground = False and users_playground = None) (https://www.youtube.com/watch?v=0fWdU8JCT6Y, timestamp: 8:00 explains a solution)

Instructions

Locally run bot

  1. clone project
  2. cd into project
  3. run python3 main.py
  • to update chatbotmodel.h5, need to run training.py on a local machine (push updated to repo, pull updated in repl.it)

stews-bot's People

Contributors

apinanyogaratnam avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

stews-bot's Issues

FEATURE - Reminders

create reminders and the bot will tell you the reminder and will ping you

allow embeds

allow users to embed html items such as gists and it displays that item

FEATURE - Birthdays

Make a feature of allowing users to add their birthday which gets stored either in a file or a db and wishes the user (does a search every day at 9:00 AM) happy birthday

Threading not working

commented out, second thread not working with push function. Bug.
branch: main-bot

on_message() organization

use a hashmap to organize on_message checks and use lambdas to store functions as the value of a key which then gets executed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.