Skip to content

ajroberts0417/tethics-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tethics

Tethics hack, this is the tethics bot.

Maintainers: andrew (msg @andrew in Tethics Roundtable for help)

Quickstart

  1. Clone the source git clone git@github.com:ajroberts0417/tethics-bot.git

  2. Navigate into the project directory cd tethics-bot

  3. Install dependencies pipenv install

  4. Create a bot account and add it to your test discord server following this guide https://discordpy.readthedocs.io/en/latest/discord.html

  5. Create a file .env with keys AIRTABLE_API_KEY, AIRTABLE_BASE, and DISCORD_TOKEN from Airtable and from the Discord bot in the format: KEY="[ key ]"

  6. Enter the pipenv virtual environment pipenv shell

  7. Run the bot: python bot.py

Boom! You're now hosting Tethics locally.

Contributing

Follow the quickstart guide to clone the source.

We use Black for code formatting. Before submitting code run: pipenv run black . to autoformat your code.

Dependencies

  • A version of python 3.8 installed and added to your PATH (for help: install python 3)
  • A version of pipenv installed

Installing Python

Managing python environments can be tricky, even for experienced developers. One easy tool to do so is pyenv. Here's how you can use a python 3.8 environment in your tethics-bot directory:

  1. Install pyenv (see pyenv installer) curl https://pyenv.run | bash

1.5.

  1. Install the latest version of python 3.8 using pyenv pyenv install 3.8.6

  2. Use this version locally in your tethics-bot project (Note: make sure you're in the tethics-bot directory) pyenv local 3.8.6

3b. Alternatively, if you want 3.8.6 to be your global version of python: pyenv global 3.8.6

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages