This repository was archived by the owner on Sep 29, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,12 +71,12 @@ async def set_afk(afk_e): | |
| afk_start = start_1.replace(microsecond=0) | ||
| if string: | ||
| 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 | ||
|
|
@@ -97,7 +97,7 @@ async def type_afk_is_not_true(notafk): | |
| 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
97
to
103
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ganti |
||
|
|
@@ -163,7 +163,7 @@ async def mention_afk(mention): | |
| 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
163
to
169
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ganti |
||
|
|
@@ -172,7 +172,7 @@ async def mention_afk(mention): | |
| 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))) | ||
|
Comment on lines
172
to
178
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ganti |
||
|
|
||
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.
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`