Closed OmLanke closed 2 years ago
Can you please elaborate as to what to split, etc? Thanks for the feedback though, i completely agree
You could move thank_words = ["thanks","thank you", "thank"]
outside of the class (somewhere around line 8-9)
Or you could define it as a class attribute. Define it near line 24 outside of the __init__ (single indented) and access it using self.thank_words
You can also use regular expressions to check if the thank words are in the message.
Splitting the content into words and looping through all of them will put load on the machine if there are long messages.
And thank you
will never work as it is 2 words.
yes maybe remove 'thank you ' coz "you' will be taken as a member and when it doesnt find it ,it'll throw error
Yeah but you can use regex instead as it will work on multi-worded string
Yes thats right. @MasterBaiter123 I noticed that you forked this repository. You're working on #9 Right? maybe you could also try fixing this issue along with it?
Sure. i'll try
Thank you !!
https://github.com/Dhravya/Spacebot/blob/5a3c545fe8faa0fcfa8b301c93feff95494baccf/src/cogs/backgroundtasks.py#L66
IMO, the overall background tasks are a bit too complex. You might wanna split then up into cogs or smth