camerongraybill / gam-bot Goto Github PK
View Code? Open in Web Editor NEWA bot for my discord server
License: MIT License
A bot for my discord server
License: MIT License
Should be able to easily add new commands in the form:
message: !<command>
response: pre defined string
Maybe just have a global mapping from one to the other? unsure.
This needs more memes
Social scores should show up in a table somewhere, and there should be a command to get a user's current score.
Needs to run somewhere - it could still run in my personal docker environment or it could go to the cloud somewhere too.
The bot needs some kind of persistence. Find a database to use and an ORM to go with it.
Each user must have a social score, defaulting to 0
These should award Gam Coins:
mypy, pylint, bandit? black?
There should be a 'Socialite' score assigned to the highest scored user and a 'basement nerd' role assigned to the lowest scored user.
Users reacting to other users messages with specific emotes should increase or decrease the social score of the reacted to user.
Also removals of reactions should undo the social score change.
Should be a table somewhere that lists everyone's current coin count
Example of use case:
user1: !prediction does the united states have more people in it than Japan? yes,no
bot: Prediction "does the united states have more people in it than Japan?" been created! Please reply in thread with !wager <value> <yes/no>
user1 (reply in thread): !wager 100 yes
(100 coins removed from user1, moved into the pot)
user2 (reply in thread): !wager 100 no
(100 coins removed from user2, moved into the pot)
user1 (reply in thread, after looking it up): !resolve yes
bot (reply in thread): user1 has been awarded 200 Gam Coins for being smarter than user2!
Need error handling for if a user doesn't have enough coins to fulfill their wager, also probably need a new model for predictions?
Data needs to be stored to track how many coins each user has.
Need to upload the image
To avoid cluttering the main bot.py file, command groups should be moved to their own Django apps. For example, all the commands around making predictions would be their own app. Not sure what number of commands leads to creating a new app. I.e. should the !show_score command be it's own app? Or should it be lumped in with the !register_score and any other new score related commands?
Images need to be stored in messages sometimes - need to store them somewhere. Should they be uploaded to a CDN? Or Is hosting on camerongraybill.dev
sufficient?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.