32baaebb93
Add ability to see, change and list gemini, mistral and ollama models
13 lines
574 B
TypeScript
13 lines
574 B
TypeScript
import {ChatCommand} from "../base/chat-command";
|
|
import {Message} from "typescript-telegram-bot-api";
|
|
import {getRangedRandomInt, logError, oldReplyToMessage} from "../util/utils";
|
|
|
|
export class Coin extends ChatCommand {
|
|
title = "/coin";
|
|
description = "Heads or tails";
|
|
|
|
async execute(msg: Message): Promise<void> {
|
|
const random = getRangedRandomInt(0, 2);
|
|
const headsOrTails = random === 1 ? "Выпал *Орёл* 🪙" : "Выпала *Решка* 🪙";
|
|
await oldReplyToMessage(msg, headsOrTails, "Markdown").catch(logError); }
|
|
} |