So, you’ve just deployed your userbot to heroku. You check the official channel and see a bunch of settings and thingies. Now, you don’t know where to start. Need full features but oof too much technical stuff to do!
Been there? Don’t worry, this article is written noob-proof to help you get your bot fully equipped. Follow the steps, use common sense and you’ll be full throttling towards having your userbot fully ready. Still having problems? Join the discussion chat and get help from fellow xtra-telegrammers!
Over a series of articles, we’ll be getting most of the modules requiring some kind of setup get ready. For this part, we’ll be discussing some of the more frequently used modules.
✪ Some Basic Knowledge about userbot.
Let’s get some things cleared on the basic stuffs.
1. Heroku Vars
Heroku Config Vars. You can set up external variables up here. Personally, I’d advice you to use desktop mode while browsing heroku because it makes things easier. You can reach the Heroku Config Vars through these steps –
- Go to Heroku.com
- Select your app.
- Go to settings
- You’ll see the option to reveal Config Vars. Click it.
This way, you can access the heroku config vars. For the rest of the article, we will be using the term heroku vars or, simply vars.
2. Keys and Values
In heroku vars, you’ll have to enter Key and Value. The Key will be same and the value will be yours. Don’t copy other people’s!
3. Common Sense
You. Need. Common. Sense.
4. Command reference
In this article, userbot commands will be between double quotes, example – “.alive”
Heroku Keys will be written in BOLD.
✪ Let’s Move to the actual settings for the userbot.
1. Add your name to “.alive”
Without setting this up, you’ll have a “No name set yet nibba, check pinned in @XtraTgBot” when you hit “.alive” . To get rid of this,
- Go to heroku.com
- Go to Vars
- Add Key, ALIVE_NAME
Add your telegram username in Value
- Next time you hit “.alive” , you’ll see your username alongside the “My peru owner:” string.
That’s it. You can insert your name instead of username as well.
2. Setting up PmPermit and AFK
PmPermit is the module that replies when someone messages you.
AFK means Away From Keyboard. You can use this module to let people know you’re currently offline, whilst specifying a reason.
To set these modules up, do the following:
- Make a new group on telegram. Send “.get_id” command in the group. You’ll get the group’s id.
- Go to heroku.
- Go to heroku vars.
- Add these keys –
- Add your group’s id as value in both the keys.
That’s it. With this, both the modules will be able to work.
Syntax: For pmpermit,
“.approve” to approve someone in your inbox.
“.block” to block someone from messaging you.
Syntax: For afk,
“.afk” to go afk.
“.afk reason” to go afk with reason.
Send any message to set afk mode to false.
3. Setting up the Updater.
X-tra-Telegram has an in-built updater module that can sync your userbot directly to the official repo, without deploying manually to heroku! This way, any future updates can be synced to your bot without having to re-fork. Henceforth, it is an indispensable tool that prove to be extremely useful.
To setup the updater, follow the following steps:
- Go to heroku.com
- Go to https://dashboard.heroku.com/account
- Scroll down there and look for API Key. Click on Reveal button.
- Copy the API Key.
- Go to vars. Enter the following Key:
Put the Api key in the value.
- Enter the following Key:
Enter your heroku app name.
That’s it. If you do these steps correctly, you’ll be able to use the “.update” command.
With this, we’ll be concluding the first part of this series. With these set up, you should be able to use most of the features peacefully, without worrying about much. In the next part, we’ll discuss about some third party plugins. Stay tuned for more and join the support chat in case of doubts!
🌟 Check out Netflix Premium Mod at https://how2techy.com/netflix-premium-free/
Get real time update about this post categories directly on your device, subscribe now.