!!/issue open in VyxalBot2 Obama "Make the bot have a 10% chance of replying with the "Obama gives himself a medal" image whenever it reports someone assigning themself to an issue"
@Ginger v2 is fine because it's just a simple "index into a list of words, doesn't matter about word list size so long as it's less than 25k words". v3 is sss, which is something I don't muck around with, because it's fine tuned for word frequency and word list length :p
@lyxal I personally dislike that PR because it means that 1. every command must return a string value and 2. every command must have a reply as a response
if response is not None:
if isinstance(response, int):
return response
temp = await self.room.send(response)
self.replyDB.addReplyToDatabase(
[event.message_id, temp]
)
return temp
if there's a response, and it wasn't a non-reply command, edit the message