ClashKingInc/ClashKingBot

Restructure Clan/Server Collections in DB

MagicTheDev opened this issue · 0 comments

https://github.com/MagicTheDev/ClashKing/blob/9cae40b55ed3d978de77339726a099e5a664a006/CustomClasses/CustomBot.py#L93-L109

Currently Structure looks something like
DB - > Clan
DB - > Server
DB - > Server Feature (i.e Welcome Messages)

Needs to be changed to the following, to make making a Server Class & interactions with the DB easier
DB -> Server Collection -> clan fields, server feature fields
like - >
{
server_id : 0,
clans: [{
name : demo
tag: #2pp
}],
welcome_message : example
}

  • database restructure
  • change name of new db to not be "usafam"
  • code changed across bot to work with new db