Skip to content

Twitch bot that will suggest what you should get for dinner!

License

Notifications You must be signed in to change notification settings

tomaarsen/TwitchSuggestDinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwitchSuggestDinner

Twitch bot that will suggest what you should get for dinner!


Explanation

When the bot has started, it will start listening to chat messages in the channel listed in the settings.txt file. Everyone in chat can now use !dinner for the bot to start suggesting food. Because just the name of a food isn't particularly useful, users can also type !recipe to see the recipe of the previously suggested meal.
This bot uses the wonderful http://www.whatthefuckshouldimakefordinner.com for it's recommendations.


Example

The chat output when !dinner, !food, !foodmedaddy or !suggest was typed by someone:

How about Beef Wellington

And the console:

[2019-04-28 13:01:57] [root        ] [INFO    ] - How about Beef Wellington

The chat output when !recipe was typed by someone, after a meal was suggested:

Recipe of most recent recommendation: https://www.cookstr.com/Beef-Recipes/Beef-Wellington-Recipe

And the console:

[2019-04-28 13:04:11] [root        ] [INFO    ] - Recipe of most recent recommendation: https://www.cookstr.com/Beef-Recipes/Beef-Wellington-Recipe

Settings

This bot is controlled by a settings.txt file, which looks like:

{
    "Host": "irc.chat.twitch.tv",
    "Port": 6667,
    "Channel": "#<channel>",
    "Nickname": "<name>",
    "Authentication": "oauth:<auth>"
}
Parameter Meaning Example
Host The URL that will be used. Do not change. "irc.chat.twitch.tv"
Port The Port that will be used. Do not change. 6667
Channel The Channel that will be connected to. "#CubieDev"
Nickname The Username of the bot account. "CubieB0T"
Authentication The OAuth token for the bot account. "oauth:pivogip8ybletucqdz4pkhag6itbax"

Note that the example OAuth token is not an actual token, but merely a generated string to give an indication what it might look like.

I got my real OAuth token from https://twitchapps.com/tmi/.


Requirements

Among these modules is my own TwitchWebsocket wrapper, which makes making a Twitch chat bot a lot easier. This repository can be seen as an implementation using this wrapper.


Other Twitch Bots

About

Twitch bot that will suggest what you should get for dinner!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages