Skip to content

artndev/sparkly-bots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sparkly Bots

Make your own spark!

Installation

Before we head to the manual, first of all, you need to download the latest release from the releases tab and unzip that archive in a folder on your disk.

Secondly, consider that you have already installed Node.js on your machine to work with the package manager npm. If all is fine, we are ready to start!

  1. Inspect .env to change the environmental variables. Do not forget to paste all data inside quotation marks!
# These variables can be obtained at https://my.telegram.org

MTPROTO_SERVER_IP="..."
MTPROTO_SERVER_PORT="..."

# The number of server that you have selected
MTPROTO_SERVER_NUMBER="..."

APP_API_ID="..."
APP_API_HASH="..."


# You can create telegram bot via @BotFather (https://t.me/BotFather)
BOT_TOKEN="..."


# Logging channel. If you want to disable logging to telegram, just write -100
CHAT_ID="..."


# Debounces set in ms (write amount of ms without 'ms' word)

# Debounce between checks for gifts in console
AUDIT_DELAY="..."

# Debounce between each message sent to logging channel
SEND_DELAY="..."

Optionally, you can deploy the bot to VPS or Railway (as I did) if you want it to work independently and skip all the steps ahead.

  1. Install all dependencies with npm
$ cd your-bot-root
$ npm i
  1. Start the Sparkly bot
$ npm run start

Tech Stack

   

   


Made with 💛 by @artndev