Skip to content

Hamburg Mensa Bot posts the Menu of Uni Cafeterias onto Discord

License

Notifications You must be signed in to change notification settings

AnnsAnns/hamburg-mensa-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hamburg Mensa Bot 🤖

This bot is intended to be run through a daily cronjob. It will post the menu of the day to a discord channel.

Discord_1KweG8GUKD

Setup 🛠️

Look at the ".env.template" file and create a ".env" file with the same structure. Alternatively, you can set the environment variables directly.

Note

  • You can get the discord token from the discord developer portal.
  • The channel id can be obtained by right clicking on the channel in discord and selecting "Copy ID".
  • The Mensa URL should be identical to the ones in the Speiseplan
  • Make sure that the bot has the "Manage Messages" permission in the channel you want to post to.
  • It will delete all messages in the channel before posting the new menu. Do not use this bot in a channel where you want to keep messages!

Run 🏃

cargo run

Build 🏗️

cargo build --release

License 📜

This project is licensed under the EUPL license - see the LICENSE file for details

Acknowledgments and Thanks 🙏

About

Hamburg Mensa Bot posts the Menu of Uni Cafeterias onto Discord

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages