Coder Social home page Coder Social logo

Anime_searcherBot - chat bot

It is repository for chat bot: @Anime_searcherBot

What it is?

This repository can be imported to Bots.Business as a worked chat bot.

Bots.Business - it is probably the first CBPaaS - Chat Bot Platform as a Service.

A CBPaaS is a cloud-based platform that enables developers to create chatbots without needing to build backend infrastructure.

Create your own bot for Telegram from this Git repo

How to create bot?

  1. Create bot with @BotFather and take Secret Token
  2. Create bot in App and add Secret Token
  3. Add Public Key from App as Deploy key with read access (and write access for bot exporting if you need it)
  4. Do import for this git repo

Now you can talk with yours new Telegram Bot

See more

Commands - in commands folder

File name - it is command name (Bot it can be rewritten in command description)

Command can have: name, help, aliases (second names), answer, keyboard, scnarios (for simple logic) and other options.

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

COMMANDS FOR THE BOT

  1. /start- to start the bot and to get info on support group
  2. /anime- to get info on how to use the bot

sadsoul091's Projects

callsmusic-2 icon callsmusic-2

The first open-source Telegram bot using @pytgcalls with queue & Heroku support.

channelautopost icon channelautopost

Telegram bot to auto post messages of one channel in another channel as soon as it is posted, without the forwarded tag.

genstr icon genstr

Genrate String Session Using this bot.

telegram_vc_bot icon telegram_vc_bot

Telegram Voice-Chat Bot Written In Python Using Pytgcalls & Pyrogram.

tg_meowzik_bot icon tg_meowzik_bot

Telegram Voice-Chat Bot To Play Music From Various Sources In Your Group Uses MPV Player for Playing! with Queue supported.

tgvc-userbot icon tgvc-userbot

Telegram Voice Chat UserBot made with Pyrogram and MarshalX/tgcalls with playlist and Heroku support

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.