use Classy-Json instead of doing that manually
@@ -78,40 +78,9 @@ bot.d.splash_logo = 'http://172.10.17.177/images/villagerbotsplash1.png'
bot.d.support = 'https://discord.gg/39DwwUV'
bot.d.invite = 'https://discord.com/oauth2/authorize?client_id=639498607632056321&permissions=8&scope=bot'
- self.custom_emojis = jj['emojis'] # custom emojis which the bot uses
-
- class Emojis:
- def __init__(_self):
- _self.online = self.custom_emojis['online']
- _self.offline = self.custom_emojis['offline']
-
- _self.emerald = self.custom_emojis['emerald']
- _self.emerald_block = self.custom_emojis['emerald_block']
- _self.netherite = self.custom_emojis['netherite']
-
- self.emojis = Emojis()
-
- self.default_findables = jj['default_findables'] # items which can be found all the time
- self.special_findables = jj['special_findables'] # items which can only be found via events
- self.shop_items = jj['shop_items'] # items which are in the shop
-
- self.playing_list = jj['playing_list'] # list of games the bot can "play" in its status
- self.cursed_images = jj['cursed_images'] # list of Minecraft cursed images
- self.build_ideas = jj['build_ideas'] # list of build ideas for the !!buildidea command
- self.emojified = jj['emojified'] # characters which can be emojified and their respective emojis
- self.fun_langs = jj['fun_langs'] # fun languages for the text commands
-
- self.gamble_sayings = jj['gamble'] # stuff for gamble command
- self.begging_sayings = jj['begging'] # text responses for begging command
- self.owos = jj['owos'] # text for owofy command
- self.mining = jj['mine'] # data for mine command
-
- # reverse enchant lang and make it its own lang (unenchantlang)
- self.fun_langs['unenchant'] = {}
- for key in list(self.fun_langs['enchant']):
- self.fun_langs['unenchant'][self.fun_langs['enchant'][key]] = key
-
-bot.d = Data()
+bot.d.fun_langs.unenchant = {}
+for key in list(bot.d.fun_langs.enchant):
+ bot.d.fun_langs.unenchant[bot.d.fun_langs.enchant[key]]
bot.cog_list = [ # list of cogs which are to be loaded in the bot
'cogs.core.events',
