update regex matching - now bot responds only for base commands (like /ping) and with mention (like /ping@panfilovi4_bot) and ignores command if it mentions other bot;
Add ability to see, change and list gemini, mistral and ollama models
This commit is contained in:
@@ -2,8 +2,7 @@ import {ChatCommand} from "../base/chat-command";
|
||||
import {getRandomInt, logError, oldSendMessage} from "../util/utils";
|
||||
import {Message} from "typescript-telegram-bot-api";
|
||||
|
||||
export class RandomString implements ChatCommand {
|
||||
regexp = /^\/randomString/i;
|
||||
export class RandomString extends ChatCommand {
|
||||
title = "/randomString [length]";
|
||||
description = "literally random string (up to 4096 symbols)";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user