Git Product home page Git Product logo

pyrevolt's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

pyrevolt's Issues

Finish event dispatching for other events

Finish event dispatching for:

  • MessageUpdate
  • MessageDelete
  • ChannelCreate
  • ChannelUpdate
  • ChannelDelete
  • ChannelGroupJoin
  • ChannelGroupLeave
  • ChannelStartTyping
  • ChannelStopTyping
  • ChannelAck
  • ServerCreate
  • ServerUpdate
  • ServerDelete
  • ServerMemberUpdate
  • ServerMemberJoin
  • ServerMemberLeave
  • ServerRoleUpdate
  • ServerRoleDelete
  • UserUpdate
  • UserRelationship

When writing this code, the documentation should be cross-checked to ensure these events are up-to-date and no new events have been added.

Bot commands

A bot object should be able to receive from a session and dispatch to a function depending on a commands decorator. This should be done without user intervention where possible.

libary sucks

lmao spaghetti code
dosent even work
i couldnt even fix it
thats how shit ur libary is

Icons

Any server, channel and user have icons, including the bot. These icons need to be dealt with correctly in accordance with the API and allow for their relative management through code.

OnMessage event type change

Blocked by: revoltchat/revolt#322

When API 0.5.3 is released, the following changes need to be made:

  • OnMessage should expect content to be nullable
  • SystemMessage is now a different parameter (system)
  • When sending a message, the system parameter cannot be sent

crash when media is sent in chat

File "/home/kiefciman/scripts/cowwy-revolt/cowwy.py", line 24, in <module>
    bot.Run(token="...")
  File "/home/kiefciman/.local/lib/python3.11/site-packages/pyrevolt/bot.py", line 93, in Run
    asyncio.run(runner())
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/kiefciman/.local/lib/python3.11/site-packages/pyrevolt/bot.py", line 91, in runner
    await self.Start(**kwargs)
  File "/home/kiefciman/.local/lib/python3.11/site-packages/pyrevolt/bot.py", line 76, in Start
    data: dict = await self.session.GatewayReceive()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kiefciman/.local/lib/python3.11/site-packages/pyrevolt/session.py", line 206, in GatewayReceive
    return await self.ProcessGateway(await self.gateway.Receive())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/kiefciman/.local/lib/python3.11/site-packages/pyrevolt/session.py", line 202, in ProcessGateway
    await data["type"].dispatch(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'dispatch'

Create ServerMember object

A object which create a connection between a user and a server
Implement object to ServerMemberUpdate event

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.