IRC bot that determines the positivity and negativity of users using sentiment analysis
- pydle
- sqlite3
- vaderSentiment
You'll need a database file to store three types of data, TEXT, REAL, and INTEGER. Substitute in IRC information.
Right now the bot won't return much useful information, but it does store the compounds1 of each user's messages in the SQLite database.
1: The compound
score is computed by summing the valence scores of each word in the lexicon, adjusted according to the rules, and then normalized to be between -1 (most extreme negative) and +1 (most extreme positive). This is the most useful metric if you want a single unidimensional measure of sentiment for a given sentence. Calling it a 'normalized, weighted composite score' is accurate. Source
.rank
: returns the three most positive and negative users
- Create the .db file and have it configured correctly beforehand
- Output a graph of some sort
- Have user-accessible commands (currently in progress)
This blog page helped me get started:
As well as this friendly guy: