Skip to content

virusAl7rbi/telegramBotCyber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cyberw_bot - chat bot

It is repository for chat bot: @cyberw_bot

Command description

It is file header:

/*CMD
  command: /test
  help: this is help for ccommand
  need_reply: [ true or false here ]
  auto_retry_time: [ time in sec ]
  answer: it is example answer for /test command
  keyboard: button1, button2
  aliases: /test2, /test3
CMD*/

See more

Command body

It is command code in JavaScript. Use Bot Java Script for logic in command.

For example:

Bot.sendMessage(2+2);

See more

Libraries - in libs folder

You can store common code in the libs folder. File name - it is library name.

For example code in myLib.js:

function hello(){ Bot.sendMessage("Hello from lib!") }
function goodbye(name){ Bot.sendMessage("Goodbye, " + name) }

publish({
  sayHello: hello,
  sayGoodbyeTo: goodbye
})

then you can run in any bot's command:

Libs.myLib.hello()
Libs.myLib.sayGoodbyeTo("Alice")

See more

Other bots example

See other bots examples in the github or in the Bot Store

Other help

Help.bots.business

API

See API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published