Преглед изворни кода

bin/ircd/script/meeting_bot: using ! instead of #

ghassmo пре 4 година
родитељ
комит
41803ebc37
1 измењених фајлова са 6 додато и 6 уклоњено
  1. 6 6
      bin/ircd/script/meeting_bot.py

+ 6 - 6
bin/ircd/script/meeting_bot.py

@@ -48,15 +48,15 @@ async def start():
 
 
             reply = None
             reply = None
 
 
-            if msg_title == "#m_start":
+            if msg_title == "!start":
                 reply = f"PRIVMSG {channel} :meeting started \r\n"
                 reply = f"PRIVMSG {channel} :meeting started \r\n"
-                msg_title = "#m_list"
+                msg_title = "!list"
 
 
-            if msg_title == "#m_end":
+            if msg_title == "!end":
                 reply = f"PRIVMSG {channel} :meeting end \r\n"
                 reply = f"PRIVMSG {channel} :meeting end \r\n"
                 topics = []
                 topics = []
 
 
-            if msg_title == "#m_topic":
+            if msg_title == "!topic":
                 topic = msg.split(" ", 4)
                 topic = msg.split(" ", 4)
                 if len(topic) != 5:
                 if len(topic) != 5:
                     continue
                     continue
@@ -64,7 +64,7 @@ async def start():
                 topics.append(topic)
                 topics.append(topic)
                 reply = f"PRIVMSG {channel} :add topic: {topic} \r\n"
                 reply = f"PRIVMSG {channel} :add topic: {topic} \r\n"
 
 
-            if msg_title == "#m_list":
+            if msg_title == "!list":
                 rep = f"PRIVMSG {channel} :topics: \r\n"
                 rep = f"PRIVMSG {channel} :topics: \r\n"
                 writer.write(rep.encode('utf8'))
                 writer.write(rep.encode('utf8'))
 
 
@@ -73,7 +73,7 @@ async def start():
                     writer.write(rep.encode('utf8'))
                     writer.write(rep.encode('utf8'))
                 await writer.drain()
                 await writer.drain()
 
 
-            if msg_title == "#m_next":
+            if msg_title == "!next":
                 if len(topics) == 0:
                 if len(topics) == 0:
                     reply = f"PRIVMSG {channel} :no topics \r\n"
                     reply = f"PRIVMSG {channel} :no topics \r\n"
                 else:
                 else: