docs: async def activate_module(channel, module_name, activate):
      """
      Changes a modules activated/deactivated state for a server
  
      Args:
          channel: The channel to send the message to
          module_name: The name of the module to change state for
          activate: The activated/deactivated state of the module
      """
  
      data = datatools.get_data()
      server_id = channel.server.id
  
      _dir = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file__)))
      _dir_modules = "{}/../".format(_dir)
      if not os.path.isfile("{}/{}/_data.py".format(_dir_modules, module_name)):
          await client.send_typing(channel)
          embed = ui_embed.error(channel, "Error", "No module found named '{}'".format(module_name))
          await embed.send()
          return
  
      try:
          import_name = ".discord_modis.modules.{}.{}".format(module_name, "_data")
          module_data = importlib.import_module(import_name, "modis")
  
          # Don't try and deactivate this module (not that it would do anything)
          if module_data.modulename == _data.modulename:
              await client.send_typing(channel)
              embed = ui_embed.error(channel, "Error", "I'm sorry, Dave. I'm afraid I can't do that.")
              await embed.send()
              return
  
          # This /should/ never happen if everything goes well
          if module_data.modulename not in data["discord"]["servers"][server_id]:
              await client.send_typing(channel)
              embed = ui_embed.error(channel, "Error",
                                     "No data found for module '{}'".format(module_data.modulename))
              await embed.send()
              return
  
          # Modify the module
          if "activated" in data["discord"]["servers"][server_id][module_data.modulename]:
              data["discord"]["servers"][server_id][module_data.modulename]["activated"] = activate
              # Write the data
              datatools.write_data(data)
  
              await client.send_typing(channel)
              embed = ui_embed.modify_module(channel, module_data.modulename, activate)
              await embed.send()
              return
          else:
              await client.send_typing(channel)
              embed = ui_embed.error(channel, "Error", "Can't deactivate module '{}'".format(module_data.modulename))
              await embed.send()
              return
      except Exception as e:
          logger.error("Could not modify module {}".format(module_name))
          logger.exception(e)