Skip to content

selfdevs/watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5139a38 · Apr 10, 2023

History

21 Commits
Apr 3, 2023
Apr 6, 2023
Apr 8, 2023
Apr 8, 2023
Apr 10, 2023
Apr 6, 2023
Apr 3, 2023
Apr 8, 2023
Feb 28, 2022
Apr 8, 2023
Apr 8, 2023
Apr 3, 2023

Repository files navigation

watcher

Discord bot for self.dev community

Current features

  • add/remove co-working role when member joins/leaves a coworking VC.
  • warn and kick the user from select voice channels if they don't turn on their cams.

Running the project locally

Project setup

# install dependencies
pip install -r requirements.txt

# make .env file from .env.example
cp .env.example .env

# run
python3 bot.py

Update the variables in .env manually

Running as docker container

docker run --env (ENV1="something"...Add env variables here manually) -v "absolute/path/to/where/you/want/to/store/logs:/app/data" probablyarth/selfdevs-watcher:1.0

or load env variables from a file

docker run --env-file "path to .env file" -v "absolute/path/to/where/you/want/to/store/logs:/app/data" probablyarth/selfdevs-watcher:1.0

Discord developer portal

Intents

SERVER MEMBERS INTENT, MESSAGE CONTENT INTENT

Permissions

Manage Roles, Read Message/View Channels, Send Messages, Send Messages In Threads, Move Members

Project structure

.
|- events
|    |- coworking.py # events related to coworking channels
|    |- cams_only.py # events related to cams_only channels
|- utils.py          # all the utility functions to keep it DRY.
|- env.py            # single source of env variables
|- bot.py            # main entrypoint

For contributing refer CONTRIBUTING

Contributors