Skip to content

HouseOfTies/XhibalbaBot_client

Repository files navigation

Xhiba

The heart of the 7th

XhibalbaBot

forthebadge nodejsbadge

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

"Heroku"

XhibalbaBot is not just a telegram bot, SHE's and SHE'll be your favorite telegram bot, just try, you'll fall in love, I swear. ❤️


Commands

How to run a command?

You have to write the command using the / symbol Some commands require arguments [arg] to work.

Example: /heya or /weather Santo Domingo

Command List:

Commands in quarentine, back soon 🔬

What is new in the Garden? ⛩️

newFeatures

No new features for now! be patient


Installation / Requirements / usage

Install the dependencies and devDependencies and start the server.

git clone https://github.com/SoftDevsCommunity/XhibalbaBot
cd XhibalbaBot
npm install
npm run start

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.

After installing heroku CLI you have to type the following commands

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

  • 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
  • Step 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 bot=1

The bot isn't running?

You can see the log of the bot in heroku running:
$ 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

Do you want to contribute? Awesome

If you have knowledge of JavaScript or TypeScript you can start directly by forking this repository and after the changes, request a pull request into experimental branch.

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 ~