Skip to content

Commit

Permalink
Transition to config file + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stekc committed Feb 5, 2024
1 parent a3c880c commit 79bfbb5
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 86 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,6 @@ dmypy.json

# PyCharm files
.idea/

# GIR
config.json
42 changes: 0 additions & 42 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,48 +19,6 @@ async def setup():
# to the last unused case ID or else it will start over from 1!
guild.case_id = 1

# required for permissions framework!
guild.role_administrator = 123 # put in the role IDs for your server here
guild.role_moderator = 123 # put in the role IDs for your server here
guild.role_birthday = 123 # put in the role IDs for your server here
guild.role_sub_mod = 123 # put in the role IDs for your server here
guild.role_genius = 123 # put in the role IDs for your server here
guild.role_dev = 123 # put in the role IDs for your server here
guild.role_memberone = 123 # put in the role IDs for your server here
guild.role_memberedition = 123 # put in the role IDs for your server here
guild.role_memberpro = 123 # put in the role IDs for your server here
guild.role_memberplus = 123 # put in the role IDs for your server here
guild.role_memberultra = 123 # put in the role IDs for your server here

# not required if you don't want the /subnews command
guild.role_sub_news = 123 # put in the role IDs for your server here

guild.channel_reports = 123 # put in the channel IDs for your server here
# channel where reactions will be logged
guild.channel_emoji_log = 123 # put in the channel IDs for your server here
# channel for private mod logs
guild.channel_private = 123 # put in the channel IDs for your server here
# channel where self-assignable roles will be posted
guild.channel_reaction_roles = 123 # put in the channel IDs for your server here
# rules-and-info channel
guild.channel_rules = 123 # put in the channel IDs for your server here
# not required
guild.channel_applenews = 123 # put in the channel IDs for your server here
# channel for public mod logs
guild.channel_public = 123 # put in the channel IDs for your server here
# optional, used for /subnrews command or something
guild.channel_subnews = 123 # put in the channel IDs for your server here
# optional, required for /issue command
guild.channel_common_issues = 123 # put in the channel IDs for your server here
# #general, required for permissions
guild.channel_general = 123 # put in the channel IDs for your server here
# required for filter
guild.channel_development = 123 # put in the channel IDs for your server here
# required, #bot-commands channel
guild.channel_botspam = 123 # put in the channel IDs for your server here
# optional, needed for booster #emote-suggestions channel
guild.channel_booster_emoji = 123 # put in the channel IDs for your server here

# you can fill these in if you want with IDs, or you ca use commands later
guild.logging_excluded_channels = [] # put in a channel if you want (ignored in logging)
guild.filter_excluded_channels = [] # put in a channel if you want (ignored in filter)
Expand Down
2 changes: 1 addition & 1 deletion utils/mod/global_modactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,5 @@ async def warn(ctx, target_member: discord.Member, mod: discord.Member, points,
# also send response in channel where command was called
dmed = await notify_user_warn(ctx, target_member, mod, db_user, db_guild, cur_points, log)
await response_log(ctx, log)
await submit_public_log(ctx, db_guild, target_member, log, dmed)
await submit_public_log(ctx, target_member, log, dmed)

1 change: 0 additions & 1 deletion utils/views/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from .menus.cfwguide import *
from .menus.menu import *
from .menus.report import *
from .menus.role_buttons import *
from .misc import *
from .modals.commonissue import *
from .modals.prompt import *
Expand Down
42 changes: 0 additions & 42 deletions utils/views/menus/role_buttons.py

This file was deleted.

0 comments on commit 79bfbb5

Please sign in to comment.