Stumpokapow
listen to the mad man
Attention also I Am Michael Bolton
Just woke up. The overnight ModBot issue was from someone with some sort of weird-ass unicode symbol in their username trying to send a PM to ModBot. I have it fixed two ways--first, the weird-ass unicode symbol shouldn't break things anymore. Second, when one PM breaks the bot like that it'll now just ignore that PM instead of refusing to process.
On that note, does anyone know of a Python best practice for taking a string that can be encoded in any kind of character encoding with any kind of symbols in it, and transcoding it to ASCII without any errors? I have tried so many combinations of unicodedata, the .encode and .decode methods, etc. I just want a simple function I can call that takes in a string of any character encoding and outputs ASCII.
Finally, raffles are ready for testing
Add the rule RAFFLE for 3 hour raffles, and RAFFLE24 for 24 hour raffles. Other rules can be combined. Raffles wait the appropriate amount of time and then choose randomly from all valid entries. I'm open to suggestions on the timers; I'm not implementing arbitrary timers.
Also ModBot is broken. Tried to do a giveaway but nothing.
Just woke up. The overnight ModBot issue was from someone with some sort of weird-ass unicode symbol in their username trying to send a PM to ModBot. I have it fixed two ways--first, the weird-ass unicode symbol shouldn't break things anymore. Second, when one PM breaks the bot like that it'll now just ignore that PM instead of refusing to process.
On that note, does anyone know of a Python best practice for taking a string that can be encoded in any kind of character encoding with any kind of symbols in it, and transcoding it to ASCII without any errors? I have tried so many combinations of unicodedata, the .encode and .decode methods, etc. I just want a simple function I can call that takes in a string of any character encoding and outputs ASCII.
Finally, raffles are ready for testing
Add the rule RAFFLE for 3 hour raffles, and RAFFLE24 for 24 hour raffles. Other rules can be combined. Raffles wait the appropriate amount of time and then choose randomly from all valid entries. I'm open to suggestions on the timers; I'm not implementing arbitrary timers.