Update main.py
Browse files
main.py
CHANGED
|
@@ -101,16 +101,21 @@ def reply_to_mentions():
|
|
| 101 |
|
| 102 |
text_out = None
|
| 103 |
text_in = mention.text.lower()
|
| 104 |
-
text_in.replace('@roastortoastgpt', '')
|
| 105 |
-
text_in.replace('roastortoastgpt','')
|
| 106 |
-
|
|
|
|
| 107 |
if "roast" in text_in:
|
|
|
|
| 108 |
text_out = roast(text_to_roast)
|
| 109 |
elif "toast" in text_in:
|
|
|
|
| 110 |
text_out = toast(text_to_roast)
|
| 111 |
|
| 112 |
if text_out is None:
|
| 113 |
continue
|
|
|
|
|
|
|
| 114 |
except Exception as e:
|
| 115 |
logger.error(e)
|
| 116 |
continue
|
|
|
|
| 101 |
|
| 102 |
text_out = None
|
| 103 |
text_in = mention.text.lower()
|
| 104 |
+
text_in = text_in.replace('@roastortoastgpt', '')
|
| 105 |
+
text_in = text_in.replace('roastortoastgpt','')
|
| 106 |
+
|
| 107 |
+
logger.info(f"In Text: {in_text}")
|
| 108 |
if "roast" in text_in:
|
| 109 |
+
logger.info(f"Roasting!")
|
| 110 |
text_out = roast(text_to_roast)
|
| 111 |
elif "toast" in text_in:
|
| 112 |
+
logger.info("Toasting!")
|
| 113 |
text_out = toast(text_to_roast)
|
| 114 |
|
| 115 |
if text_out is None:
|
| 116 |
continue
|
| 117 |
+
|
| 118 |
+
logger.info(f"Out Text: {text_out}")
|
| 119 |
except Exception as e:
|
| 120 |
logger.error(e)
|
| 121 |
continue
|