Skip to content

AbertayHackers/hacksoc-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f2a8950 · Jun 4, 2024

History

73 Commits
Sep 20, 2022
Apr 28, 2024
Sep 11, 2023
Sep 11, 2023
May 14, 2021
Aug 25, 2021
Aug 12, 2021
Jul 8, 2021
Nov 15, 2021
Nov 15, 2021

Repository files navigation

Hacksoc Bot

Discord bot for the Abertay Hacksoc Discord Server

Contributions Policy

Contributions from Hacksoc members are welcome!

Please feel free to fork the public repo to create your own development repo. If you wish to add this into the Hacksoc bot dev server, please speak to the secretary.

When deploying:

  • Go to the Discord Developer portal and create a bot. Take note of the token!
  • Clone your local copy of the repository to a development machine (a linux VM is ideal for this, as you can also create a MySQL Database)
  • Create a config/secrets.json file (there is a template provided at config/secrets.json.template). You will need to fill in all of the fields in this template as directed.
  • Update channel/guild IDs in the "env" section of the config/config.json file. A pre-populated version of this already exists for the official dev server (speak to the secretary about getting access)
    • For dev, please export an environment variable DEV=/path/to/config/file, rather than overwriting the original
  • Initialise your MySQL database locally by running mysql < config/init.sql -- make sure to update the password!.
  • Run the main.py script.
  • Your bot should now be deployed!

Contribution Thanks

A big thank you to @CyberSophi for the Discord Portal design, and to @Samiser for taking the time to implement the design for web.

To Do:

  • Add Multi-language support
  • Set up decent logging
  • Add AGM Commands