[config] Add example file for guidance

In this commit, I also added comments in the root .gitignore file.

Signed-off-by: Andrei Jiroh Eugenio Halili <andreijiroh@madebythepins.tk>
This commit is contained in:
Andrei Jiroh Eugenio Halili 2020-07-25 08:55:48 +00:00
parent e47bb3acdf
commit f7b57f26fd
2 changed files with 20 additions and 0 deletions

2
.gitignore vendored
View File

@ -123,6 +123,8 @@ dmypy.json
# Pyre type checker
.pyre/
# Pyrogram stuff + Userbot config
*.session
spam/config.py
*.session-journal

18
spam/config.sample.py Normal file
View File

@ -0,0 +1,18 @@
# This file is an template for configuring your SpamProtectionAgent Userbot.
# Duplicate this file and save as config.py.
# To run the userbot, make this variable defined. DO NOT LEAVE IT BLANK!
ENABLE = ""
# Need to debug stuff? Enable this one to show debug logs which might contains
# senstive information.
LOGGER = ""
# Command prefix for userbot commands.
Command = "!"
# ID and Hash for first user.
# Get one from https://my.telegram.org/apps
user1_api_id = ""
user1_api_hash = ""
user1_session_string = ""