File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 88from __future__ import annotations
99
1010import logging
11- import subprocess
1211
1312from 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 )
You can’t perform that action at this time.
0 commit comments