This repository was archived by the owner on Sep 29, 2021. It is now read-only.
Open
Conversation
Daffa06
commented
Sep 15, 2020
Comment on lines
-74
to
82
| AFKREASON = string | ||
| await afk_e.edit(f"Going AFK!\ | ||
| await afk_e.edit(f"Into The Silence!\ | ||
| \nReason: `{string}`") | ||
| else: | ||
| await afk_e.edit("Going AFK!") | ||
| await afk_e.edit("Into The Silence!") | ||
| if BOTLOG: | ||
| await afk_e.client.send_message(BOTLOG_CHATID, "#AFK\nYou went AFK!") | ||
| await afk_e.client.send_message(BOTLOG_CHATID, "#AFK\nYou go to the Silence!") | ||
| ISAFK = True | ||
| afk_time = datetime.now() # pylint:disable=E0602 | ||
| raise StopPropagation |
Comment on lines
97
to
103
| afk_end = back_alive.replace(microsecond=0) | ||
| if ISAFK: | ||
| ISAFK = False | ||
| msg = await notafk.respond("I'm no longer AFK.") | ||
| msg = await notafk.respond("Coming back from Silence!") | ||
| time.sleep(3) | ||
| await msg.delete() | ||
| if BOTLOG: |
Comment on lines
163
to
169
| afk_since = f"`{int(seconds)}s` ago" | ||
| if mention.sender_id not in USERS: | ||
| if AFKREASON: | ||
| await mention.reply(f"I'm AFK since {afk_since}.\ | ||
| await mention.reply(f"I'm not active right now {afk_since}.\ | ||
| \nReason: `{AFKREASON}`") | ||
| else: | ||
| await mention.reply(str(choice(AFKSTR))) |
Comment on lines
172
to
178
| elif mention.sender_id in USERS: | ||
| if USERS[mention.sender_id] % randint(2, 4) == 0: | ||
| if AFKREASON: | ||
| await mention.reply(f"I'm still AFK since {afk_since}.\ | ||
| await mention.reply(f"I'm still not active right now {afk_since}.\ | ||
| \nReason: `{AFKREASON}`") | ||
| else: | ||
| await mention.reply(str(choice(AFKSTR))) |
Contributor
|
This you need . Not Ours |
fa84b2a to
c9701da
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cuman edit modul afk.py sama stickers.py