PTU_notification_discord_bot is a discord bot as name suggests. It send announcements/notifications of PTU (Punjab Technical University) as a discord message.
Clone the project
git clone https://github.com/Nishant8146/Convac.git
Go to the project directory
cd PTU_notification_discord_bot
To install required pakages, run following command.
pip install -r requirments.txt
Follow this link to make a discord bot accountand get token. https://discordpy.readthedocs.io/en/stable/discord.html
Then invite bot to server and execute commands
make a discord bot account, copy token then paste in config.py file.
Depending on os execute specific py file
For Windows
python discord_bot_windows.py
For Linux
python discord_bot_linux.py
or
python3 discord_bot_linux.py
- To show all commands
!!help
- To start notification on channel
!!setup_ptu
- Disable channel to get notifications
!!remove
- Disable notification service for all channels of server
!!disable
- To start bot on server (only for administrator of bot)
!!start_ptu()
Bot does not start working until this command is not executed,this command does not showed in help message.