Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Conversation

@Sigmanificient
Copy link
Member

import asyncio
from pincer import Client


class Bot(Client):

    @Client.event
    async def on_ready(self):
        print("Logged in as", self.bot)

        await asyncio.sleep(5)
        self.close()

if __name__ == "__main__":
    b = Bot("...")
    b.run()
    # go on with more stuff

@Sigmanificient Sigmanificient added the enhancement New feature or request label Jan 10, 2022
@codecov
Copy link

codecov bot commented Jan 10, 2022

Codecov Report

Merging #371 (fb1601b) into main (9db7e1b) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #371   +/-   ##
=======================================
  Coverage   90.54%   90.54%           
=======================================
  Files           8        8           
  Lines          74       74           
=======================================
  Hits           67       67           
  Misses          7        7           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9db7e1b...fb1601b. Read the comment docs.

@Sigmanificient Sigmanificient linked an issue Jan 10, 2022 that may be closed by this pull request
Co-authored-by: Endercheif <[email protected]>
Copy link
Member

@Enderchief Enderchief left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🪨

@Sigmanificient Sigmanificient merged commit 58dc68d into Pincer-org:main Jan 10, 2022
@Sigmanificient Sigmanificient deleted the loop&close branch January 10, 2022 20:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Adding a client.close method

4 participants