Start of chat command handling

This commit is contained in:
2020-07-23 20:05:13 +03:00
parent ce872ffb63
commit 4f5c790dc1
2 changed files with 24 additions and 0 deletions

18
chatCommands.py Normal file
View File

@@ -0,0 +1,18 @@
from typing import Dict
import random
def handle_command(kwargs):
command = kwargs['message'].split()[0]
print(command)
def custom_roll(character, message):
print('asd')
commands: Dict = {
'/roll': custom_roll
}