WaterGenie35 / discord-auto-translate-bot

2 stars 3 forks source link

Add a command to add/remove auto-translate channel connections #6

Open WaterGenie35 opened 4 years ago

WaterGenie35 commented 4 years ago

For example:

!link list
!link create "CategoryA" "Channel1" English "CategoryB" "Channel2" Russian
!link delete "CategoryA" "Channel1" English "CategoryB" "Channel2" Russian

Also need some kind of persistence so existing links can be established when the bot starts running. Probably just store the links as json file using this structure: https://github.com/Thirdwater/discord-auto-translate-bot/blob/9af5fea70c4ae9353f58f46add7ea1d9a16e4256/auto-translate/custom_types.py#L15-L22