An implementation of my PassmarkSearcher as a Discord bot.
!passmark - Short, compact way to get the single core performance, multi core performance and the TDP of a CPU. To compare two CPUs with passmark, seperate them with a pipe [|]. (e.g !passmark i7-7700K | i7-9700K)
!spec - Less compact, but also provides the type of CPU (desktop/laptop/server), socket and cores.
-
Clone this repo.
-
Build Concord's dev branch and install Concord.
-
Build passmarkbot.c with
gcc passmarkbot.c -o passmarkbot -pthread -ldiscord -lcurl. Alternatively, if your compiler is Clang, you can useclang passmarkbot.c -o passmarkbot -pthread -ldiscord -lcurl. -
Edit config.json.example by filling in your bot's token and save as config.json.
-
Run and profit.
- Decentcarp/Eleanor/R5900 (aka me)
- Concord (Discord API bindings)
- GeeksforGeeks (public code reference)
