.. _plugin:admin: ===== ADMIN ===== | about ----- | :author: FeedBackLoop :contact: FREENODE/#fbf :distribution: core :license: | description ----------- | admin related commands. these commands are mainly for maintaining the bot. | commands -------- | :commands in this plugin: admin-debugoff .. admin-stop .. admin-mc .. admin-callbacks .. admin-debugon .. admin-save .. admin-userhostscache .. admin-errors .. admin-commands .. admin-exceptions .. admin-boot .. admin-bootthreaded .. admin-bootbackend .. admin-floodcontrol .. admin-setstatus .. admin-makebot .. admin-reloadconfig .. admin-loadall .. admin-status | 1) *admin-boot .. [handle_adminboot]* :description: no arguments - boot the bot .. do some initialisation. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-boot_command`. 2) *admin-bootbackend .. [handle_adminbootbackend]* :description: no arguments - boot the bot .. do some initialisation. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-bootbackend_command`. :examples: :: ;admin-bootbackend reloading all plugins done - admin-bootbackend 3) *admin-bootthreaded .. [handle_adminbootthreaded]* :description: no arguments - boot the bot .. do some initialisation. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-bootthreaded_command`. :examples: :: ;admin-bootthreaded reloading all plugins done - admin-bootthreaded 4) *admin-callbacks .. [handle_admincallbacks]* :description: no arguments - load all available plugins. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-callbacks_command`. :examples: :: ;admin-callbacks callbacks: 001: ['fbf.plugs.core.nickserv'], 367: ['fbf.plugs.extra.kickban'], BLIP_SUBMITTED: ['fbf.plugs.extra.relay', 'fbf.plugs.extra.forward', 'fbf.plugs.extra.watcher', 'fbf.plugs.extra.learn', 'fbf.plugs.core.dispatch'], CMND: ['fbf.plugs.extra.learn', 'fbf.plugs.core.dispatch'], CONSOLE: ['fbf.plugs.extra.forward', 'fbf.plugs.extra.watcher', 'fbf.plugs.extra.fisheye', - 8 more 5) *admin-commands .. [handle_admincommands]* :description: no arguments - load all available plugins. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-commands_command`. :examples: :: ;admin-commands commands: 8b: fbf.plugs.extra.8b, @: fbf.plugs.extra.snarf, action: fbf.plugs.core.irc, add_fisheye_project: fbf.plugs.extra.fisheye, add_jira_server: fbf.plugs.extra.jira, admin-boot: fbf.plugs.core.admin, admin-bootbackend: fbf.plugs.core.admin, admin-bootthreaded: fbf.plugs.core.admin, admin-callbacks: fbf.plugs.core.admin, admin-commands: fbf.plugs.core.admin, admin-debugoff: - 47 more 6) *admin-debugoff .. [handle_admindebugoff]* :description: no arguments - disable debug on a channel. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-debugoff_command`. :examples: :: ;admin-debugoff debugging is disabled for #test 7) *admin-debugon .. [handle_admindebugon]* :description: no arguments - enable debug on a channel. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-debugon_command`. :examples: :: ;admin-debugon debugging is enabled for #test 8) *admin-errors .. [handle_adminerrors]* :description: no arguments - show logged errors (not exceptions). :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-errors_command`. :examples: :: ;admin-errors no errors 9) *admin-exceptions .. [handle_adminexceptions]* :description: no arguments - show exceptions raised in the bot. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-exceptions_command`. :examples: :: ;admin-exceptions exceptions raised: fbf.lib.eventbase:148 execute | fbf.lib.commands:167 dispatch | fbf.lib.commands:185 doit | fbf.plugs.core.test:140 handle_forcedexception | : test exception

fbf.lib.eventbase:148 execute | fbf.lib.commands:167 dispatch | fbf.lib.commands:185 doit | fbf.plugs.core.test:150 handle_forcedexceptionthreaded | : - 1 more 10) *admin-floodcontrol .. [handle_adminfloodcontrol]* :description: no arguments - disable debug on a channel. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-floodcontrol_command`. :examples: :: ;admin-floodcontrol dunker 20 floodrate for dunker set to 20 :: ;admin-floodcontrol dunker 20 300 500 admin-floodcontrol [period] [wait] 11) *admin-loadall .. [handle_loadall]* :description: no arguments - load all available plugins. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-loadall_command`. :examples: :: ;admin-loadall done - admin-loadall 12) *admin-makebot .. [handle_adminmakebot]* :description: arguments: - create a bot of given type. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-makebot_command`. :examples: :: ;admin-makebot cmndxmpp xmpp done - admin-makebot 13) *admin-mc .. [handle_adminmc]* :description: flush memcached. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-mc_command`. :examples: :: ;admin-mc stats memcached error: 'NoneType' object has no attribute 'get_stats' :: ;admin-mc flushall no memcached running 14) *admin-reloadconfig .. [handle_adminreloadconfig]* :description: no arguments - reload bot config and mainconfig files. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-reloadconfig_command`. :examples: :: ;admin-reloadconfig done - admin-reloadconfig 15) *admin-save .. [handle_adminsave]* :description: no arguments - boot the bot .. do some initialisation. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-save_command`. :examples: :: ;admin-boot reloading all plugins done - admin-boot 16) *admin-setstatus .. [handle_adminsetstatus]* :description: arguments: [] - set the status of the bot (xmpp). :permissions: STATUS .. OPER :code: :ref:`fbf.plugs.core.admin_admin-setstatus_command`. :examples: :: ;admin-setstatus available Yooo dudes ! this command only works on sxmpp bots (for now) 17) *admin-status .. [handle_adminstatus]* :description: [] :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-status_command`. :examples: :: ;admin-status current runner status: api: {}, callback: {"BotEventRunner/callback-4": {"queue": 0, "running": "True", "outs": 0, "stopped": "False", "working": "False", "fromplug": ""}, "BotEventRunner/callback-1": {"queue": 0, "running": "True", "outs": 0, "stopped": "False", "working": "False", "fromplug": ""}, "BotEventRunner/callback-0": {"queue": 0, "running": "True", "outs": - 2 more 18) *admin-stop .. [handle_adminstop]* :description: no arguments - stop the bot. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-stop_command`. 19) *admin-userhostscache .. [handle_userhostscache]* :description: no arguments - show userhostscache of the bot the command is given on. :permissions: OPER :code: :ref:`fbf.plugs.core.admin_admin-userhostscache_command`. :examples: :: ;admin-userhostscache userhostcache of #test: