This repository has been archived by the owner on Sep 29, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 441
Dante #35
Open
Daffa06
wants to merge
2
commits into
MoveAngel:sql-extended
Choose a base branch
from
Daffa06:sql-extended
base: sql-extended
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Dante #35
Conversation
This file contains 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
Daffa06
commented
Sep 15, 2020
Comment on lines
-74
to
82
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ganti`
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ganti
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))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ganti
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))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ganti
This you need . Not Ours |
fa84b2a
to
c9701da
Compare
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