TomPed / miscord

Meme bot for Discord and useful history logging

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change the parser to use a hash table for commands

michaeltcoyle opened this issue · comments

At the moment the parser uses an array of commands and has a switch for each element of the array to execute the functions.
Change the parser to use a hash table for commands (.command = key, actual function = value) for increased clarity.