Fixed kill command not working in PM.
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
const config = require('config');
|
||||
|
||||
function onCommand(args, context) {
|
||||
console.log(context);
|
||||
|
||||
context.bot.socket.transmit('message', {
|
||||
roomId: context.room.id,
|
||||
roomId: context.room?.id,
|
||||
recipient: context.message.user?.username,
|
||||
body: 'Shutting down... :sleeping:',
|
||||
style: config.style,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user