mirror of
https://github.com/nichkara/InfinitumBotty.git
synced 2026-06-10 22:26:23 +02:00
Made Botty Case Insensitive
This commit is contained in:
@@ -18,7 +18,7 @@ class TitleObserver(PrivMsgObserverPrototype):
|
||||
|
||||
def update_on_priv_msg(self, data, connection: Connection):
|
||||
regex = "(?P<url>https?://[^\s]+)"
|
||||
url = re.search(regex, data['message'])
|
||||
url = re.search(regex, data['messageCaseSensitive'])
|
||||
if url is not None:
|
||||
url = url.group()
|
||||
print(url)
|
||||
|
||||
Reference in New Issue
Block a user