Code Monkey home page Code Monkey logo

harukaaya1's Introduction

Haruka Aya

HarukaAya is an open source Telegram group manager bot, this is a modular based Telegram Python Bot running on Python3 with sqlalchmey database.

This bot can be found and used on telegram as Haruka Aya.

Useful links

If you want to join our group chats, we advise that you read the rules carefully before participating in them.


Installation

First what you want to do is prepare the configuration file for Haruka Aya, copy sample_config.yml to config.yml and begin to fill out all the required information

Name Required Description
is_example_config_or_not Yes You need to change the value of this property to not_sample_anymore to verify that the configuration file you are running is indeed not a sample.
bot_token Yes Your bot API token that you obtain from BotFather
api_key Yes Your Telegram API Key
api_hash Yes Your Telegram API Hash
owner_username Yes The username of the owner of this bot (Without the leading @)
message_dump Yes ???
load No ???
no_load No ???
strict_antispam No ???
workers No ???
del_cmds No ???
sw_api No The API Token for SpamWatch
database_url Yes The URL for the Postgres Database, required for the bot to store and retrieve data
sudo_users No A list of users that have sudo permissions to this bot (User IDs)
whitelist_users No ???

How can I obtain bot_token?

Just talk to BotFather (described here) and follow a few simple steps. Once you've created a bot and received your authorization token, that's it! that's your bot_token.

How can I obtain a api_key and api_hash?

In order to obtain an API key and hash you need to do the following:

  • Sign up for Telegram using any application.
  • Login to your Telegram core: https://my.telegram.org.
  • Go to 'API Development tools' and fill out the form.
  • You will get basic addresses as well as the api_id and api_hash parameters required for Haruka's configuration file.

Requirements

  • PostgreSQL
  • Docker (optional)
  • Python3.6

Docker

Run with docker! you can a local instance of haruka from the production branch using the Dockerfile

docker build -t="haruka" -f Dockerfile .
docker run -t --name haruka --restart always haruka

From source

pip install -r requirements.txt
python -m haruka

Branch purposes

HarukaAya will have multiple branches for different purposes, these are the main branches you should understand before contributing to this project.

  • production This is the production branch that the server (or Dockerfile) will pull from and run Haruka Aya. This is the most stable branch, and it's ready for production. We do not push experimental or patches to this branch until we can confirm that it's stable for production

  • master This is the next thing to production in terms of stable, here this is where all new changes are pushed before they are merged into the production branch. This is like the testing branch where we would run in test environment to double check before pushing to production. Everything pushed to this branch must be stable and finished.

Any other branches should be treated as work in progress features that is currently being worked on to release to production.

Contributing to the project

  • You must sign off on your commit.
  • You must sign the commit via GPG Key.
  • Make sure your PR passes all CI.

Thanks to

  • RealAkito - Original Haruka Aya Owner
  • Davide - For designing and creating Haruka Aya's display picture and banner
  • zakaryan2004 - For helping out a lot with this project.
  • MrYacha - For Yana :3
  • Skittle - For memes and sticker stuff.
  • 1mavarick1 - Introducing Global Mutes, etc.
  • AyraHikari - Reworked Welcome, Fed v2
  • Paul Larsen - Marie and Rose creator

And much more that we couldn't list it here!

harukaaya1's People

Contributors

paulsonoflars avatar realakito avatar zakaryan2004 avatar kandnub avatar 1maverick1 avatar ayrahikari avatar yasir-siddiqui avatar jvlianodorneles avatar termozour avatar the-blank-x avatar bronderb avatar sphericalkat avatar nitin1818 avatar yshalsager avatar skittles9823 avatar justasic avatar gotenksin avatar baalajimaestro avatar anirudhgupta109 avatar netkas avatar rohk25 avatar fushinori avatar pranayadmn avatar nckmml avatar jumatberkah avatar jeepeo avatar msfjarvis avatar mocarafee avatar devp73 avatar noodlesoup 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.