Add "addbot" feature
This commit is contained in:
parent
6d83df2e95
commit
708955c062
6 changed files with 40 additions and 1 deletions
|
@ -4,6 +4,7 @@ const assert = require("assert").strict
|
|||
const util = require("util")
|
||||
const DiscordTypes = require("discord-api-types/v10")
|
||||
const reg = require("../matrix/read-registration")
|
||||
const {addbot} = require("../addbot")
|
||||
|
||||
const {discord, sync, db, select} = require("../passthrough")
|
||||
/** @type {import("../matrix/api")}) */
|
||||
|
@ -201,6 +202,16 @@ const commands = [{
|
|||
})
|
||||
}
|
||||
)
|
||||
}, {
|
||||
aliases: ["addbot"],
|
||||
execute: replyctx(
|
||||
async (message, channel, guild, ctx) => {
|
||||
return discord.snow.channel.createMessage(channel.id, {
|
||||
...ctx,
|
||||
content: addbot()
|
||||
})
|
||||
}
|
||||
)
|
||||
}]
|
||||
|
||||
/** @type {CommandExecute} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue