Giter Site home page Giter Site logo

divideprojects / alita_robot Goto Github PK

View Code? Open in Web Editor NEW
184.0 184.0 298.0 2.19 MB

๐Ÿค– Alita is a Telegram Group management bot made using Gotgbot and Go, which makes it modern and โฉ faster than most of the Telegram chat managers. ๐Ÿ’ฌ

License: GNU Affero General Public License v3.0

Makefile 0.03% Go 99.96% Procfile 0.01%
bot hacktoberfest pyrogram python telegram telegram-bot

alita_robot's People

Contributors

abishnoi69 avatar annihilatorrrr avatar anonymousx1025 avatar celestix avatar deepsource-autofix[bot] avatar dependabot[bot] avatar divkix avatar github-actions[bot] avatar jayantkageri avatar restyled-io[bot] avatar sourcery-ai[bot] avatar yumiko-bots avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

alita_robot's Issues

Switch to MongoDB

Postgresql is kinda useless, need to link tables to each other which gives errors most of the times.
Going to use MongoDB either with PyMongo or Motor, preferring Motor because it is async.

requirements.txt missed?

Please excuse me if I didn't understand something. requirements.txt file is missing in the project root and in other folders too.

Fix custom filters when mention bot username

Checklist

  • [โœ“] I am sure the error is coming from Bot's code and not elsewhere.
  • [โœ“] I have searched in the issue tracker for similar bug reports, including closed ones.
  • [โœ“] I ran pip3 install -U https://github.com/DivideProjects/Alita_Robot/archive/master.zip and reproduced the issue using the latest development version.
  • [โœ“] I'n not here to spam and show that I'm stupid.

Description

A clear and concise description of the problem.
What is happening?
Why do you think it is happening?
https://github.com/DivideProjects/Alita_Robot/blob/e01f4f691c5bc531f1ff4630032adcd4e0c9382c/alita/utils/custom_filters.py#L67
Fix this regex command because when use command example with /command@bn bot will respond, it must not respond because not valid command only respond with valid bot username. And make case sensitive command too.

Traceback

The full traceback (if applicable)

Getting KeyError: 'en-US'

Can you solve this error ?
i setup everything,including redis and postgres ,bot is just sending its start msg

Bot started on Pyrogram v1.0.7 (Layer - 117)

Loaded Plugins:
['admin', 'approve', 'blacklist', 'covid', 'fun', 'language', 'locks', 'notes', 'purges', 'reporting', 'rules', 'translate', 'utils', 'wikipedia']
Redis Keys Loaded:
[b'SUPPORT_STAFF', b'ADMINDICT', b'BOT_ID']

after that bot suddenly stopping.

the log screenshot is attaching below

IMG_20201029_215933_790

disable.py

When I Disable Command kickme or Other , It's Not Work. and then show errors like bellow.

2022-04-02T07:25:01.317224+00:00 app[worker.1]: Traceback (most recent call last):
2022-04-02T07:25:01.317225+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.10/site-packages/pyrogram/dispatcher.py", line 222, in handler_worker
2022-04-02T07:25:01.317226+00:00 app[worker.1]:     await handler.callback(self.client, *args)
2022-04-02T07:25:01.317226+00:00 app[worker.1]:   File "/app/alita/plugins/disable.py", line 33, in disableit
2022-04-02T07:25:01.317226+00:00 app[worker.1]:     disable_list = db.get_disabled()
2022-04-02T07:25:01.317227+00:00 app[worker.1]:   File "/app/alita/database/disable_db.py", line 60, in get_disabled
2022-04-02T07:25:01.317227+00:00 app[worker.1]:     DISABLED_CMDS[self.chat_id]["commands"] = cmds
2022-04-02T07:25:01.317227+00:00 app[worker.1]: KeyError: -1001184552992

New Langs add not show

Checklist

  • [ โœ“] I am sure the error is coming from Bot's code and not elsewhere.
  • I have searched in the issue tracker for similar bug reports, including closed ones.
  • I ran pip3 install -U https://github.com/DivideProjects/Alita_Robot/archive/master.zip and reproduced the issue using the latest development version.
  • I'n not here to spam and show that I'm stupid.

Description

A clear and concise description of the problem.
What is happening?
Why do you think it is happening?

I add new language(edite en.yml file and add new file for this, one is work) to my alita forks, one is our language Mizo, other one is turkey but turkey isn't showing my bot? I don't know how to fix this, i search through all modules but I can't find where to fix, also there's no errors log in heroku too, please can you help me?
Sorry for my silly pull request this is my first time.
Thanks in advance.

Traceback

The full traceback (if applicable).

New Translation Engine

Add new translations engine with better loading, this one uses a class first to get strings and then shows them. In new, just going to have a function covering the reply_text.

Feature Request

Hello Sir, please Add /lock Url Feautures on Alitas this repo...... Kindly Feauture request.

[BUG]

I am sure the error is coming from Bot's code and not elsewhere.

  • I am sure the error is coming from Bot's code and not elsewhere.
  • I have searched in the issue tracker for similar bug reports, including closed ones.
  • I ran go run main.go in the project root and reproduced the issue using the latest development version.
  • I am not here to spam and show that I'm stupid.

Reproduction steps

1.Languages
2.Modules Buttons
3.shutting down herself
4.Greetings
...
1. we face this error(we don't know how to get logs) when we enabled locales, but sometime our languages selectable options not appear, also when they appear nothing is work when we click no respond from bot and it poupup this in our terminal ->  github.com/PaulSonOfLars/gotgbot/v2/ext/handlers.CallbackQuery.HandleUpdate(...)
        /go/pkg/mod/github.com/!paul!son!of!lars/gotgbot/[email protected]/ext/handlers/callbackquery.go:25
github.com/PaulSonOfLars/gotgbot/v2/ext.(*Dispatcher).iterateOverHandlerGroups(0x4000191c20, 0x0?, 0x1?)
        /go/pkg/mod/github.com/!paul!son!of!lars/gotgbot/[email protected]/ext/dispatcher.go:270 +0x134
github.com/PaulSonOfLars/gotgbot/v2/ext.(*Dispatcher).ProcessUpdate(0x4000191c20, 0x40001a4e00, 0x500?, 0x78b0c0?)
        /go/pkg/mod/github.com/!paul!son!of!lars/gotgbot/[email protected]/ext/dispatcher.go:256 +0x8c
github.com/PaulSonOfLars/gotgbot/v2/ext.(*Dispatcher).ProcessRawUpdate(0x0?, 0x40005aa4e0?, {0x40002d0f00, 0x4b9, 0x500})
        /go/pkg/mod/github.com/!paul!son!of!lars/gotgbot/[email protected]/ext/dispatcher.go:234 +0xac
github.com/PaulSonOfLars/gotgbot/v2/ext.(*Dispatcher).Start.func1({0x40002d0f00?, 0x78244?, 0x0?})
        /go/pkg/mod/github.com/!paul!son!of!lars/gotgbot/[email protected]/ext/dispatcher.go:191 +0x6c
created by github.com/PaulSonOfLars/gotgbot/v2/ext.(*Dispatcher).Start
        /go/pkg/mod/github.com/!paul!son!of!lars/gotgbot/[email protected]/ext/dispatcher.go:181 +0x34

and for second : when we try to enabled more languages like ENABLED_LOCALES="mz en hi" with comma and without commas, it's not work too.

2. Modules button like Reports and other modules button(Not all of them) is not work too, when we click Reports also some button too, ther's no respond, i think this is from dispatcher or update...calbackquery i'm not sure.

3.when we run/deployed bot from it work without problems, but a few hours or days, sometime after we deployed and run perfectly, bot shutting down it self, we need to re-Deployed always.

4.when we try to set custom welcome message, bot not respond, in some group we can set but without long message, sometime bot doesn't greet new member too! and there's ,ore little bugs as well.

we hope this bugs(error?) will fix later,

thanks in advance.


### Error Traceback

_No response_

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.