A bot for managing movies and deciding on which movie should be watched next.
Since I can't provide a web server for you to host this bot on, you need to follow these steps:
Settings > Bot
lib.rs
in the external_data/src
directorypub static DISCORD_TOKEN: &'static str = "<YOUR_TOKEN>";
where you replace <YOUR_TOKEN>
with the previously copied token. Note that the double quotes are necessary.pub static TMDB_API_KEY: &'static str = "<API_KEY>"
lib.rs
file under pub static TMDB_API_READ_ACCESS_TOKEN: &'static str = "<API_READ_ACCESS_TOKEN>";
In order to compile an executable file you need to have the programming language Rust and its dependencies installed on your system. Because you need to generate your own token and API key I can not provide an executable.
Publishing the token will open the bot to hacking attacks, since everybody with the token can potentially run dangerous programs on the bot. Do never publish the token anywhere.
After the executable was created you just need to invite the bot to your server.
Following this link (discordapi.com/permissions.html#257088) will lead you to a permissions calculator. On this page you just need to paste the Client ID of your Discord application into the field at the bottom. The Client ID can be found on the Discord developers page (where you created the Discord bot application) under the section OAuth2
.
After you inserted the Client ID you can follow the link at the bottom of the page, which will redirect you to a Discord page asking you to log into your Discord account. If you are logged in, the page will prompt you to enter a server to add the bot to.
Once all these steps are completed you can start the executable. The bot will wake up and should now be online on your server.