Skip to content

deluxghost/simple-asf-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5b1ed7c · Sep 12, 2019

History

18 Commits
Nov 2, 2018
Nov 3, 2018
Nov 2, 2018
Nov 3, 2018
Sep 12, 2019

Repository files navigation

Simple ASF Bot

Send commands to ASF in Telegram.

Requirements

  • Python 3.6+
  • aiotg
  • ASF_IPC

Installation

git clone https://github.com/deluxghost/simple-asf-bot
cd simple-asf-bot
pip3 install -r requirements.txt

Configuration

Edit simple.conf:

[telegram]
bot_token = 987654321:XXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXX  ; The API token of your Telegram bot
admin_id = 123456789  ; Your Telegram number ID (not the username)
proxy = socks5://127.0.0.1:1234  ; Proxy URL for Telegram request, empty if you don't use proxy

[ipc]
address = http://127.0.0.1:1242/  ; ASF IPC address
password = PASSWORD  ; ASF IPC password

Getting Started

python3 simple.py simple.conf