ranrinc / DI-clan-helper

Python discord bot that can help you manage your clan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python discord bot that helps with events and clan management

There are five main areas where this bot can help you run your server

  1. CR tracker. Members can use !cr/!res/!name commands to update their info. Bot also keeps track of active members with "home role" assigned

  2. Role sync. There is an ability to sync member roles between multiple servers in a mesh form and update them on join or leave events. When member from server1:role1 joins server2 member autoreceives role2 and name prefix

  3. Kions tracker. Users with manage_roles permissions can create events for other officers to sign up

  4. ROE groups manager. Assign people to groups. People can use commands like !mygroup or !whogroup to find their teammates

  5. DI events tracker. AutoPosts Daily Diablo Immortal Events digest and 15 minutes update prior the event

If you have any questions reach out to hobz#8445 on discord

Bot-as-a-service

https://discord.com/api/oauth2/authorize?client_id=415370939711356928&permissions=8&scope=applications.commands%20bot

Self-hosted Installation and pre-requisites

pip3 install -r requirements.txt

local .env file with the following information

env="PROD"
DISCORD_TOKEN_PROD=""
OWNER_DISCORD_ID=""
MYSQL_HOST=""
MYSQL_USER=""
MYSQL_PASSWORD=""
MYSQL_DB=""

SQL Schema and Events is included in the resourcers/ folder

Run with

  python3 main.py

Bot Configuration Reference

ALLOW_CLAN_DATA: Allow viewing clan data on specified server ID

EVENT_ANNOUNCE_CHANNEL: Channel ID to announce game events

GUILD_HOME_ROLE: Role ID that will be used to check if user is in clan during the cross server sync

GUILD_NAME: Guild name that will be displayed on !top/!whois commands

ROLE_SYNC: Value field is a column separated string with source_guild_id:source_guild_role:target_guild_role:prefix

TIME_CHANNEL: Voice channel that will be used to set current game time

KION_CHANNEL: Channel ID to announce kion events

Demo

cr_tools

kions

di_events

role_sync_in_action

About

Python discord bot that can help you manage your clan

License:MIT License


Languages

Language:Python 100.0%