Example #1
0
    def configure_discord(self, send_test=False):
        # Configure discord
        if self.command is None:
            self.command = Command(self)

        if self.discord is None:
            self.discord = Discord()

        self.discord.configure_discord(self._settings.get(['bottoken'], merged=True),
                                       self._settings.get(['channelid'], merged=True),
                                       self._logger,
                                       self.command,
                                       self.update_discord_status)
        if self.presence is None:
            self.presence = Presence()
        self.presence.configure_presence(self, self.discord)

        if send_test:
            self.notify_event("test")
 def configure_presence(self):
     if self.presence is None:
         self.presence = Presence()
     self.presence.configure_presence(self, self.discord)