Table of Contents
Due to the Covid-19 Pandemic my friends and I were more or less forced to start our Bachelor studies online. Most of them I have not even met in real life during that time. So our main tool to communicate, study together and meet up is our own Discord server. On that server are almost 200 students that use it to meet up and connect. It is kind of like an virtual campus. While we were chatting and preparing for our exams, we discussed how cool it would be to have a bot that makes our virtual college life a bit easier. We discussed over a couple of functions it should have and already had some pretty cool ideas. Those ideas were now transformed into a working bot!
- Clone this repo using
git clone https://github.com/MaxMLang/DiscordBot_Uni.git
- Create a bot with your Discord developer accoun and copy your bot token
- Paste your bot token into the variable at the beginning of the code. NOTE: Your bot token should never be publicly avaible so set you repo to private if you will use github!
- Specify the prefix of UNIMUC. So by using
uni$some_command
we can tell our bot what to do specifically.
# INSERT THE SPECIFIC DISCORD TOKEN
DISCORD_TOKEN = "XXXXXXXXXXXXXXX"
# CREATES A NEW BOT OBJECT WITH A SPECIFIED PREFIX
bot = commands.Bot(command_prefix="uni$")
Before you can work with the bot you need to install the following packages.
Windows users
py -m pip install "discord"
py -m pip install "random"
py -m pip install "json"
py -m pip install "os"
py -m pip install "requests"
Mac/Unix users
python3 -m pip install "discord"
python3 -m pip install "random"
python3 -m pip install "json"
python3 -m pip install "os"
python3 -m pip install "requests"
Many students struggle to keep an overview over all the websites. Lecture Periods, Moodle (Platform for courses in Statistics), Uni2Work (Platform for courses in Mathematics or Computer Science) and many more. This problem belongs now to the past. UNIMUC offers multiple functions to send them the links right into the channel. These functions are simple but really powerful.
Sometimes you might be in the mood for some quick fun facts. "Did you know...
... that UNIMUC can help you with that?"
Life can be frustrating. Student life can be even more frustrating, sometimes. UNIMUC will cheer you up again! UNIMUC can encourage you just by reading what you write in the chat. So e.g. if you write "Ich geb auf" ("I give up" in German) UNIMUC will send you some encouragement.
Students can get an almost infinite amount of quotes from Zenquotes.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request