GithubHelp home page GithubHelp logo

tanjiro-bot's Introduction

Create a new config.py or rename this to config.py file in same dir and import, then extend this class.

import json #by ctzfamioy import os

ARQ_API_URL = "https://arq.hamker.in" ARQ_API_KEY = "KGTHQB-IKDNAI-XXFCND-VDZFQI-ARQ"

def get_user_list(config, key): with open('{}/VegetaRobot/{}'.format(os.getcwd(), config), 'r') as json_file: return json.load(json_file)[key]

Create a new config.py or rename this to config.py file in same dir and import, then extend this class.

class Config(object): LOGGER = True # REQUIRED #Login to https://my.telegram.org and fill in these slots with the details given by it

API_ID = 12345   # integer value, dont use ""
API_HASH = "awew"
TOKEN = "wow"  #This var used to be API_KEY but it is now TOKEN, adjust accordingly.
SQLALCHEMY_DATABASE_URI = "" #Use Your ElephantSQL
OWNER_ID = 1491497760  # If you dont know, run the bot and do /id in your private chat with it, also an integer
OWNER_USERNAME = "nandhaxd"
SUPPORT_CHAT = 'vegetasupport'  #Your own group for support, do not add the @
UPDATES_CHANNEL = 'vegetaUpdates' #Your own channel for Updates of bot, Do not add @
JOIN_LOGGER = -1001543354286  #Prints any new group the bot is added to, prints just the name and ID.
REM_BG_API_KEY = "dxsh728mZMDmj4ijSZCNPZig"
EVENT_LOGS = -1001543354286  #Prints information like gbans, sudo promotes, AI enabled disable states that may help in debugging and shit
LOAD = []
NO_LOAD = ['rss', 'cleaner', 'connection', 'math']
WEBHOOK = None
INFOPIC = True
URL = None
SPAMWATCH_API = ""  # go to support.spamwat.ch to get key -
SPAMWATCH_SUPPORT_CHAT = "@SpamWatchSupport"
BOT_ID = "2128359921"

DRAGONS = get_user_list('elevated_users.json', 'sudos')

DEV_USERS = get_user_list('elevated_users.json', 'devs')
##List of id's (not usernames) for users which are allowed to gban, but can also be banned.
DEMONS = get_user_list('elevated_users.json', 'supports')
#List of id's (not usernames) for users which WONT be banned/kicked by the bot.
TIGERS = get_user_list('elevated_users.json', 'tigers')
WOLVES = get_user_list('elevated_users.json', 'whitelists')
DONATION_LINK = None  # EG, paypal
CERT_PATH = None
PORT = 5000
WORKERS = 8  # Number of subthreads to use. Set as number of threads your processor uses
BL_CHATS = []  None List of groups that you want blacklisted.
SPAMMERS = None

class Production(Config): LOGGER = True

class Development(Config): LOGGER = True

tanjiro-bot's People

Contributors

ashui501 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.