Skip to content

higgsbot/main

Repository files navigation

HiggsBot

HiggsBot is a Discord bot written for the Discord Hack-A-Ton.
The bot compiles or interprets various programming languages and prints the various results in chat.
A few safety measures have been implemented. For more information, read the documentation.

Supported Languages

  • C
  • C++

Requirements

HiggsBot must be ran in a Linux environment with the following packages preinstalled:

  • gcc
  • g++
  • Python 3.6+
  • Pip
  • Git

WSL on Windows is supported.

Install Instructions

Ubuntu:

sudo apt update
sudo apt install build-essentials nasm python3.7 git -y
git clone --recurse-submodules https://github.com/higgsbot/main.git
cd main
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.7 get-pip.py

Launch the bot using python3.7 bot.py. You will be prompted to input some data.

First paste in your bot token from the Discord developer website.
After that paste in the user IDs of the bot owners/administrators seperated by "," eg. "231312312,421412421".

The users with their IDs in that file will be able to give and take away CodeTokens from other users and themselves.

Now go to the maintenance menu by typing 2 and pressing enter, and type 2 again to install the bot requirements.

Unless you want to enter your sudo password in to the console each time sudo times out, you will have to allow the bot to run sudo commands without password. Follow this SO to accomplish that.

Credits

  • @1byte2bytes aka Sydney: All the magic that compiles and runs the code, and the libcontainer library.
  • @IOIIIO aka NoOne: launcher, libcurrency, and the cogs for use with the main bot.
  • @zackerthescar: Parts of the bot and QC.

License

MIT

Releases

No releases published

Packages

No packages published

Languages