Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reload: remove .update command #2416

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions sopel/modules/reload.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from __future__ import annotations

import logging
import subprocess

from sopel import plugin, plugins

Expand Down Expand Up @@ -56,19 +55,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 Expand Up @@ -119,14 +105,6 @@ def pm_f_reload(bot, trigger):
f_reload(bot, trigger)


@plugin.command('update')
@plugin.require_privmsg
@plugin.output_prefix(PLUGIN_OUTPUT_PREFIX)
def pm_f_update(bot, trigger):
"""Wrapper for allowing delivery of .update command via PM"""
f_update(bot, trigger)


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