From d557f6ba0cf68fc8ef1511ab9086ca11b374a312 Mon Sep 17 00:00:00 2001
From: Someone <someone@somenet.org>
Date: Mon, 10 Jan 2022 19:27:34 +0100
Subject: [PATCH] modules/CommandCourseIsMeh.py
---
modules/CommandCourseIsMeh.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/CommandCourseIsMeh.py b/modules/CommandCourseIsMeh.py
index cc66c17..44528fd 100644
--- a/modules/CommandCourseIsMeh.py
+++ b/modules/CommandCourseIsMeh.py
@@ -29,11 +29,11 @@ class CommandCourseIsMeh(AbstractCommand):
def on_POST(self, request, data):
msg_text = data['text'].strip()
- c = self.bot.api.get_channel(data["channel_id"])
+ chan = self.bot.api.get_channel(data["channel_id"])
import pprint
- pprint.pprint(c)
+ pprint.pprint(chan)
- if c["name"] in ["town-square", "off-topic"] or c["display_name"][0] == "=" or c["type"] != "O":
+ if chan["name"] in ["town-square", "off-topic"] or chan["display_name"][0] == "=" or chan["type"] != "O":
request.respond_cmd_err("``/"+self.TRIGGER+"`` must be used in a course channel.")
return
--
2.43.0