Skip to content

Commit c743925

Browse files
committed
reload: remove .update command
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.
1 parent 5a590f5 commit c743925

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

sopel/modules/reload.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from __future__ import annotations
99

1010
import logging
11-
import subprocess
1211

1312
from sopel import plugin, plugins
1413

@@ -56,19 +55,6 @@ def f_reload(bot, trigger):
5655
))
5756

5857

59-
@plugin.nickname_command('update')
60-
@plugin.require_admin
61-
@plugin.output_prefix(PLUGIN_OUTPUT_PREFIX)
62-
def f_update(bot, trigger):
63-
"""Pulls the latest versions of all plugins from Git (for use by admins only)."""
64-
proc = subprocess.Popen('/usr/bin/git pull',
65-
stdout=subprocess.PIPE,
66-
stderr=subprocess.PIPE, shell=True)
67-
bot.reply(proc.communicate()[0])
68-
69-
f_reload(bot, trigger)
70-
71-
7258
@plugin.nickname_command("load")
7359
@plugin.priority("low")
7460
@plugin.thread(False)
@@ -119,14 +105,6 @@ def pm_f_reload(bot, trigger):
119105
f_reload(bot, trigger)
120106

121107

122-
@plugin.command('update')
123-
@plugin.require_privmsg
124-
@plugin.output_prefix(PLUGIN_OUTPUT_PREFIX)
125-
def pm_f_update(bot, trigger):
126-
"""Wrapper for allowing delivery of .update command via PM"""
127-
f_update(bot, trigger)
128-
129-
130108
@plugin.command("load")
131109
@plugin.priority("low")
132110
@plugin.thread(False)

0 commit comments

Comments
 (0)