Answer the question
In order to leave comments, you need to log in
How can I notify my discord bot of some client event?
The task is this: the Discord bot, when pressing a key on the keyboard on the user's computer (the creator of the discord server), must do something (in my case, include a specific .mp3 file).
I have an application that listens for a specific key being pressed (using the iohook module):
const ioHook = require('iohook');
ioHook.on("keypress", event => {
// Numpad 0
if(event.rawcode === 96) {
}
});
ioHook.start();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question