mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-06-04 06:41:18 +00:00
Meow
This commit is contained in:
@@ -78,12 +78,13 @@ export class AppserviceCommandHandler {
|
||||
const prefixUsed = prefixes.find(p => body.toLowerCase().startsWith(p.toLowerCase()));
|
||||
if (!prefixUsed) return;
|
||||
|
||||
console.log("Got admin command:", prefixUsed);
|
||||
let restOfBody = body.substring(prefixUsed.length);
|
||||
const readItems = readCommand(restOfBody)
|
||||
console.log("Got admin command:", restOfBody);
|
||||
const argumentStream = new ArgumentStream(readItems);
|
||||
const command = this.commandTable.findAMatchingCommand(argumentStream);
|
||||
if (command) {
|
||||
console.log("command:", command);
|
||||
const adaptor = findMatrixInterfaceAdaptor(command);
|
||||
const context: AppserviceContext = {
|
||||
appservice: this.appservice,
|
||||
|
||||
Reference in New Issue
Block a user