IITD-Bot
IITD-Bot copied to clipboard
Discord bot to administer IITD Study Servers (unofficial)
trafficstars
IITD-Bot
Discord bot to administer IITD'20 Acad Server
Commands
helloto check if bot is online?helpto display this message?set <kerberos>to set your kerberos and automatically assign role for branch, hostel and courses?courses(self) or?courses <kerberos>or?courses @Userto list courses?slot <course>to get slot for a course?info <course>to get info for a course (name, credits, pre reqs, overlaps, description). Uses IITD Course Planner?tt(self) or?tt <kerberos>or?tt @Userto get yours or someone else's timetable (excluding labs for now)?mess(self)(today) or?mess @Useror?mess <hostel> -<day>to get mess menu for the hostel on that day. Uses data from BHM records?ytto launch a YouTube Together session, where you can watch youtube videos or lectures together in a voice channel?major(self) or?major <kerberos>or?major @Userto get yours or someone else's major date sheet. Uses Majors API by Adit Malhotra- Works for multiple inputs too! Try
?slot COL106 COL202
Manager only
?edit <kerberos> @Userto edit kerberos for some user?checkmail <mail-to> #Channelto track circular emails on that channel every minute?updateto update roles for all registered users?reloadto reload the database from.csvand.jsonfiles?fetchldapto fetch courses data from ldap and reload
Configure
- Install python then clone this repo and switch into the directory
- Install dependencies
discord,bs4,dotenv,requests - Put
BOT_TOKEN,IITD_EMAIL,IITD_PASSin.envfile in the same directory - Requires files
kerberos.csv,hostels.csv,branches.csv,courses.csvin the same directory to store configuration and data for the batch of your server. These are excluded in.gitignorefor privacy reasons. Contact me if you need them for configuration. course_lists.jsoncan be generated fromget_course_lists()function ofutils.pyif you are connected to IIT Delhi Internal Networkdiscord_ids.jsonwill be generated and updated by the scriptlog.txtis a temporary file generated by?updatecommand- Run
python bot.py