Kaynağa Gözat

Capitalise replies in !chanops: !voice, !devoice, !op, !deop, !join, !part

tags/v0.1^2
Justin Yulli Kim 12 yıl önce
ebeveyn
işleme
56c1c08f39
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. +3
    -3
      earwigbot/commands/chanops.py

+ 3
- 3
earwigbot/commands/chanops.py Dosyayı Görüntüle

@@ -30,11 +30,11 @@ class ChanOps(Command):

def process(self, data):
if data.command == "chanops":
msg = "available commands are !voice, !devoice, !op, !deop, !join, and !part."
msg = "Available commands are !voice, !devoice, !op, !deop, !join, and !part."
self.reply(data, msg)
return
if data.host not in self.config.irc["permissions"]["admins"]:
self.reply(data, "you must be a bot admin to use this command.")
self.reply(data, "You must be a bot admin to use this command.")
return

if data.command == "join":
@@ -59,7 +59,7 @@ class ChanOps(Command):
if not channel.startswith("#"):
channel = "#" + channel
else:
msg = "you must specify a channel to join or part from."
msg = "You must specify a channel to join or part from."
self.reply(data, msg)
return



Yükleniyor…
İptal
Kaydet