Just For Memes Discord Bot that reads the conversation and gives you a positive or negative social credit score depending on your messages using TextBlob Sentiment Analysis. - Super basic, super WIP. Don't use, this is purely for a joke and for practice. Built using Python, Discord.py, SQLite, and TextBlob.
- Analyzes messages for sentiment using TextBlob
- Rewards or deducts social credit scores based on sentiment
- Persistently stores scores in an SQLite database
- Provides commands for users to view/manage their score
- Displays a leaderboard of top scoring users
- Install requirements from requirements.txt
- Set up config files for token, roles, keywords
- Run bot.py
- Use commands like
?score,?give,?take
?score- Shows your current score?give- Adds points to another user?take- Deducts points from a user?reset- Resets a user's score to 0?set- Sets a user's score to a value?board- Shows the leaderboard
The scores.db SQLite database contains a scores table with:
user_idas PRIMARY KEYscoreinteger column
This stores and retrieves social credit scores.
Copy example files and edit for your bot:
roles.txt- Role name to check permissionskeywords.txt- Words to monitor in messagestoken.txt- Discord bot user token