SophiaH67 / xi-jinping-bot

Enforces chinese laws in discord
GNU Affero General Public License v3.0
18 stars 10 forks source link

Broken mentions #9

Closed teammate165 closed 3 years ago

teammate165 commented 3 years ago

Some words such as n-bomb makes the bot respond with a broken mention, I assume this is an older response? Here's an example:

image

SophiaH67 commented 3 years ago

GitHub autoclosed the issue for some reason, but it is most definitely still there. Will try and look into it more today

SophiaH67 commented 3 years ago

I have further looked into this, and it seems to be an issue with the way this project deals with numbers... User id's are parsed as numbers, which javascript put as floating point numbers. This means all my data so far has errors in it, and I am giving up on this project.

SophiaH67 commented 3 years ago

I have further looked into further looking into this and have a potential fix. It won't be pretty, but this is what happens if you have older code that broke😄