Skip to content

Commit

Permalink
reload: remove .update command
Browse files Browse the repository at this point in the history
Sopel's not designed to run directly from a Git working directory any
more, so let's not advertise this command that relies upon it.
  • Loading branch information
dgw committed Feb 28, 2023
1 parent 5a590f5 commit 8b293ea
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions sopel/modules/reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,6 @@ def f_reload(bot, trigger):
))


@plugin.nickname_command('update')
@plugin.require_admin
@plugin.output_prefix(PLUGIN_OUTPUT_PREFIX)
def f_update(bot, trigger):
"""Pulls the latest versions of all plugins from Git (for use by admins only)."""
proc = subprocess.Popen('/usr/bin/git pull',
stdout=subprocess.PIPE,
stderr=subprocess.PIPE, shell=True)
bot.reply(proc.communicate()[0])

f_reload(bot, trigger)


@plugin.nickname_command("load")
@plugin.priority("low")
@plugin.thread(False)
Expand Down

0 comments on commit 8b293ea

Please sign in to comment.