Space Bot
Space Bot, a Discord bot built for HackerSpace Club of PES University
What can Space Bot do?
- Space Bot allows you to lookup any mentor or topic
- It updates you about Instagram posts made by HackerSpace clubs
- You can also code - It supports over 20 languages!
- You can post questions and answers anonymously
Run !help
to check out all the features.
How to run Space Bot?
- Clone the repository
git clone [email protected]:HackerSpace-PESU/spacebot.git
- Create a separate virtual environment to install the dependencies. You can use virtualenv -- it is simple to setup and use.
cd spacebot
virtualenv bot
-
Activate the virtual environment
- Windows
.\bot\Scripts\activate.bat
- Linux/Mac
source bot/bin/activate
- Windows
-
Install the dependencies
- Windows
pip install -r requirements.txt
- Linux/Mac
pip3 install -r requirements.txt
- Windows
-
Setup the following environment variables in a
.env
COMPILER_CLIENT_ID_1=
COMPILER_CLIENT_SECRET_1=
COMPILER_CLIENT_ID_2=
COMPILER_CLIENT_SECRET_2=
COMPILER_CLIENT_ID_3=
COMPILER_CLIENT_SECRET_3=
COMPILER_CLIENT_ID_4=
COMPILER_CLIENT_SECRET_4=
COMPILER_CLIENT_ID_5=
COMPILER_CLIENT_SECRET_5=
GUILD_ID=
BOT_ID=
BOT_TOKEN=
CHANNEL_ANNOUNCEMENTS=
CHANNEL_ANNOUNCEMENTS_RR=
CHANNEL_ANNOUNCEMENTS_EC=
CHANNEL_UNASSIGNED=
CHANNEL_WELCOME=
CHANNEL_BOT_TEST=
CHANNEL_SELECTION_YEAR=
CHANNEL_SELECTION_TOPIC=
CHANNEL_SELECTION_CAMPUS=
ROLE_UNASSIGN=
ROLE_BOT_DEV=
ROLE_MOD=
ROLE_CORE_RR=
ROLE_CORE_EC=
ROLE_FIRSTYEAR=
ROLE_SECONDYEAR=
ROLE_THIRDYEAR=
ROLE_FOURTHYEAR=
ROLE_GRAD=
ROLE_CAMPUS_RR=
ROLE_CAMPUS_EC=
ROLE_CAMPUS_OUTSIDER=
- Run the bot using the following command
python3 src/bot.py
How to contribute to Space Bot?
- Fork this repository
- Create a new branch called
username-beta
- Make your changes and create a pull request with the following information in the request message:
- The functionality you wish to change/add | What did you change/add
- Screenshots of the feature working at your end
- Send a review request to one or all of the following:
ArvindAROO
sach-12
aditeyabaral
DevMashru
- Wait for approval for reviewers. Your PR may be directly accepted or requested for further changes
Important: Under no circumstances is anyone allowed to merge to the main branch.
Maintainers
Contact any of us for any support.