/XhibalbaBot

Official SD bot, made in the heart of 7th and supported by the community. Owner: Seventty

Primary LanguageJavaScriptOtherNOASSERTION

Xhiba

The heart of the 7th

XhibalbaBot

forthebadge nodejsbadge

https://telegram.me/ZeroSeventty https://t.me/Inferno7th https://t.me/inferno1st

"Heroku"

XhibalbaBot is a telegram bot with which you can do many interesting things using its multiple commands; having both administrative commands and multimedia commands. Try it!

How to run a command?


You have to write the command using the / symbol Some commands require an argument [arg] to work. Example: /dado 1 or /clima Santo Domingo

Command Description Example
Heya The bot will greet you back if you write that to her /heya
Help Bot's manual /help
Say Type something and the bot will repeat it /say something
Dice Throw a dice using numbers between 1 or 6 /dice 6
Weather Want to see how is the weather in any place? /weather Santiago
GH Find the profiles of your programmer friends on github /gh seventty
Wiki Look up anything on wikipedia, the universal encyclopedia of the universe /wiki bot
Img Let's look for images together, just tell me what you want us to see /img apples
IP Now I am a special agent in IP addresses, lets look for the information that is behind that secret IP. Write an IP (public) to search /ip 109.252.66.82
Command Description Example
Whoami If you want to see your user information, type this one /whoami
WhoIs Wanna see the information of another one? type this one replying any message of her/him /whois
YouTube Surf in the quite multimedia ocean doing youtube video request and play in the same chat that you are /youtube cats
Dictionary Don't you know the meaning of a word? Look it up in the dictionary /dic something
Logro celebrate your achievements with random images minecraft style /logro kill some zombies
Snap Take a webshot shot at the greatness of the internet /snap google.com
FullSnap Take a webshot shot more complete at the greatness of the internet /fullsnap google.com

I must to be a group administrator 👑 for the following commands.

Command Description Example
Ban Position yourself on the message of a user and select the days to ban typing /ban 3
UnBan Position yourself on the message of a user and unban typing /unban
Pin Pin a message in the chat, i'll remember it /pin any message
UnPin The pin's command makes me return a pin ID, with that pin you can unpin the pin /unpin pinID
ChatTitle Let me change the name of your group for you, just tell me what you want /chtitle the new title
ChatDescription Let me change the description of your group for you, just tell me what you want /chdescription the new description
Invite Your own chat invitation? Got u, take a ticket /invite

We have not new commands at the momment

newFeatures


Installation / Usage / Requirements

Install the dependencies and devDependencies and start the server.

$ git clone https://github.com/SoftDevsCommunity/XhibalbaBot
$ cd XhibalbaBot
$ npm install
$ node bot.js

Open the file .env and set the enviromental variables with your tokens

local_bot_TOKEN='YOUR-BOT-TOKEN-FROM-BOTFATHER'
local_openweather_TOKEN='YOUR-TOKEN-FROM-OPENWEATHER'
local_youtube_TOKEN='YOUR-YOUTUBE-TOKEN-FROM-GOOGLE-DEVELOPER-CONSOLE'
local_rapidapi_TOKEN='YOUR-API-FROM-RAPIDAPI'

Giving a house to your bot in "Heroku"

You have to be registered in heroku or have an account before starting with the following commands.

Remember: You just need to type the lines with $ behind.

After installing heroku CLI you have to type the following commands

  • Step: 1
$heroku login

heroku: Press any key to open up the browser to login or q to exit
 ›   Warning: If browser does not open, visit
 ›   https://cli-auth.heroku.com/auth/browser/***
heroku: Waiting for login...
Logging in... done
Logged in as me@example.com
  • Step: 2
$ cd XhibalbaBot
$heroku create yourbotename

Creating app... done, ⬢  yourbotename
Creating sharp-rain-871... done, stack is heroku-18
http://sharp-rain-871.herokuapp.com/ | https://git.heroku.com/sharp-rain-871.git
Git remote heroku added
  • Setp 3:
$git push heroku main

Counting objects: 488, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (367/367), done.
Writing objects: 100% (488/488), 231.85 KiB | 115.92 MiB/s, done.
Total 488 (delta 86), reused 488 (delta 86)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NODE_VERBOSE=false
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:
remote: -----> Installing binaries
remote:        engines.node (package.json):  14.x
remote:        engines.npm (package.json):   unspecified (use default)
remote:
remote:        Resolving node version 14.x...
remote:        Downloading and installing node 14.15.4...
remote:        Using default npm version: 6.14.11
       ....
remote: -----> Build succeeded!
remote: -----> Discovering process types
remote:        Procfile declares types -> web
remote:
remote: -----> Compressing...
remote:        Done: 19M
remote: -----> Launching...
remote:        Released v3
remote:        http://sharp-rain-871.herokuapp.com deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/nameless-savannah-4829.git
 * [new branch]      main -> main

Note:

You have to set your tokens in heroku too.

herokuCapture

herokuCapture2

  • Step: 4
$ heroku ps:scale web=1

The bot isn't running?

You can see the log of the bot in heroku doing:
$ heroku logs --tail

2011-03-10T10:22:30-08:00 heroku[web.1]: State changed from created to starting
2011-03-10T10:22:32-08:00 heroku[web.1]: Running process with command: `npm start`
2011-03-10T10:22:33-08:00 heroku[web.1]: Listening on 18320
2011-03-10T10:22:34-08:00 heroku[web.1]: State changed from starting to up
Click here to see a examplebot with better construction thanks to Wilmer Terrero for the contrib, visit his account and give him love. <3

Development / Support

Want to contribute? That's great!

If you have knowledge of javascript you can start directly by forking this repository and after the changes, request a pull request.

You haven't any knowledge in programming? dont' worry, you can support me inviting me a Koffee.

ko-fi

me License


MIT © 2021 Rainiery Valerio

Welcome to the divine comedy ~