Git Product home page Git Product logo

icqbotpy's Introduction

ICQBOT

An actually working ICQ bot framework

Purpose

I made this bot framework for personal use, since the original ICQ bot framework is a mess and almost impossible to work with.

This bot allows for easy development and has a concise syntax based of Aiogram with a really simple async impl.

Getting started

Installation

You can install this framework with the command pip install ICQBot.

Example

Checkout the wiki!.

Current state

The bot does not implements full control of the ICQ new api yet, I'll try to map the other endpoints asap. The current implementations are:

  • Self:
    • /self/get
  • Chats:
    • /chats/members/delete
    • POST /chats/avatar/set
    • /chats/sendActions
    • /chats/getInfo
    • /chats/getAdmins
    • /chats/getMembers
    • /chats/getBlockedUsers
    • /chats/getPendingUsers
    • /chats/blockUser
    • /chats/unblockUser
    • /chats/resolvePending
    • /chats/setTitle
    • /chats/setAbout
    • /chats/setRules
    • /chats/pinMessage
    • /chats/unpinMessage
  • Message:
    • /messages/deleteMessages
    • /messages/sendText
    • /messages/editText
    • /messages/answerCallbackQuery
    • GET /messages/sendFile
    • POST /messages/sendFile
    • GET /messages/sendVoice
    • POST /messages/sendVoice
  • Files:
    • /files/getInfo
    • /messages/sendFile
  • Events:
    • /events/get
      • newMessage
      • callbackQuery

TODO

  • Map all of the others endpoints
  • Use matches with regex or string match to search for terms in messages

Notes

There's a lot of bugs and things that I have yet to fix. As I do not have the time and expertise to fix it all at once, I'm slowly adding features and seeing what's wrong and doing what I can to make this framework fast, beautiful and easy to use.

icqbotpy's People

Contributors

dependabot[bot] avatar kamuridesu avatar olegt0rr avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

olegt0rr

icqbotpy's Issues

sendText format not working

Bug added on commit 7b1612c

Code:

async def test(message: ReceivedMessage):
    import json
    f = {"bold":[{"offset": 0,"length": 1},{"offset": 2,"length": 5}],"italic": [{"offset": 2,"length": 3}]}
    return await message.reply("World!", formatting=json.dumps(f), parse_mode="")

Traceback:

    raise MessageNotSentError(response_dict["description"])
ICQBot.exceptions.MessageErrors.MessageNotSentError: Format error

Code refactoring

Hi! I've found many errors with pyCharm code scanner.
I suggest you to do the same and then fix them all.

Stale

The project is stale for a while because ICQ New is suspended on Brazil. Thank you.

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.