An implementation of my PassmarkSearcher as a Discord bot.
!passmark - Get the single core performance, multi core performance and the TDP of a CPU. To compare multiple CPUs with !passmark, seperate them with a pipe [|]. (e.g !passmark i7-7700K | i7-9700K). You may compare up to five CPUs.
!gpassmark - Get the 3D performance, VRAM and the TDP of a GPU. Again, to compare multiple GPUs with !gpassmark, seperate them with a pipe. [|]. (e.g !gpassmark 7900 XT | RTX 3080). You may compare up to five GPUs.
You may also use !pm and !gpm in place of !passmark and !gpassmark respectively.
-
Clone this repo.
-
Build Concord's dev branch and install Concord (
make installdoes it.). -
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)
