mirror of
https://github.com/opus-tango/minecraft-server-discord-bot.git
synced 2026-03-20 12:05:22 +00:00
finish readme and clean up json examples
This commit is contained in:
4
bot.py
4
bot.py
@@ -27,7 +27,7 @@ with open('config.json', 'r') as f:
|
||||
command_prefix = config['config']['command_prefix']
|
||||
for regex in config['config']['regex']:
|
||||
regex_list.append(re.compile(regex['match']))
|
||||
fprint_list.append(regex['capture'])
|
||||
fprint_list.append(regex['fstring'])
|
||||
|
||||
intents = discord.Intents.default()
|
||||
intents.message_content = True
|
||||
@@ -452,7 +452,7 @@ async def reloadregex(ctx):
|
||||
config = json.load(f)
|
||||
for regex in config['config']['regex']:
|
||||
regex_list.append(re.compile(regex['match']))
|
||||
fprint_list.append(regex['capture'])
|
||||
fprint_list.append(regex['fstring'])
|
||||
|
||||
# Reload the processline module
|
||||
global processline
|
||||
|
||||
Reference in New Issue
Block a user