No Description

Your Name 9741b9e82e Version: 0.3.3.4 4 days ago
.idea 039ed60296 Version: 0.3.3.2 5 days ago
lang f047e512c1 fix 5 days ago
.gitignore 039ed60296 Version: 0.3.3.2 5 days ago
LICENSE 44150087a4 Initial commit 1 month ago
README.md a2425669a3 Updated install doc 1 week ago
emoji.py 001ad39053 Version: 0.0.2a 1 month ago
errors.py 1467687983 Version: 0.3 1 week ago
install.py 57f666cc1a Version: 0.3.3.1 1 week ago
main.py 9741b9e82e Version: 0.3.3.4 4 days ago
models.py 1467687983 Version: 0.3 1 week ago
requirements.txt 1467687983 Version: 0.3 1 week ago
settings.py 9741b9e82e Version: 0.3.3.4 4 days ago

README.md

discordbot

Информация

Бот для сервера Ee, создатель Darhan.

Пример конфигурации

vote_role_msg_roles = {"KEYCAP_DIGIT_ONE": 790546216043282432, "KEYCAP_DIGIT_TWO": 790546320506486834, "KEYCAP_DIGIT_THREE": 790546370431287307, "KEYCAP_DIGIT_FOUR": 790546424865488918, "KEYCAP_DIGIT_FIVE": 790952569727483945, "KEYCAP_DIGIT_SIX": 790984822461431808, "KEYCAP_DIGIT_SEVEN": 790984875858591744}
levels = {"500": 791075893485240360, "1000": 791075006808981534, "2000": 791075545592627200}

Сервис

/etc/systemd/system/ds.service (systemctl daemon-reload)

[Unit]
Description=DS bot
After=network.target

[Service]
Type=simple
ExecStart=/root/bots/ds.sh
Restart=always

[Install]
WantedBy=multi-user.target

/root/bots/ds.sh (chmod u+x ds.sh)

#!/bin/bash
cd /root/bots/discordbot
python3 main.py