A Discord bot optimized for Critical Ops utilizes the game's public API to deliver real-time statistics, updates, and notifications to Discord.
Checks each line in response for certain text because the response is php-like array, feel free to use regex instead if you want.
(Edit if you actually use content headers json you will get json response but unfortunately i did it the hard way before i realised lol)
-help
- Shows all commands and their description
-u
/ -username
- Lookup by username
-id
/ -ids
- Lookup by ID
Replace "TOKEN" with your actual Discord Bot Token bot.run('TOKEN')
If you have any questions or need further assistance, please feel free to contact me at [detective@yin.sh].