Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sakuya Izayoi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Reviath
Sakuya Izayoi
Commits
4e01f5a0
Commit
4e01f5a0
authored
Mar 6, 2021
by
Reviath
Browse files
Options
Downloads
Patches
Plain Diff
Update cogs/user.py
parent
ff37a4df
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cogs/user.py
+6
-5
6 additions, 5 deletions
cogs/user.py
with
6 additions
and
5 deletions
cogs/user.py
+
6
−
5
View file @
4e01f5a0
...
...
@@ -67,8 +67,8 @@ class User(commands.Cog):
mycursor
.
execute
(
warns3
)
myresult2
=
mycursor
.
fetchall
()
if
myresult2
:
for
z
in
myresult2
:
t
=
str
(
z
)[:
-
3
][
2
:]
tt
=
[
str
(
warn1
)[:
-
3
][
2
:]
for
warn1
in
myresult2
]
t
=
"
,
"
.
join
(
tt
)
else
:
t
=
"
This user didn
'
t warned on this guild
"
embed
=
discord
.
Embed
(
colour
=
member
.
top_role
.
colour
,
timestamp
=
ctx
.
message
.
created_at
,
title
=
f
"
User Info -
{
member
}
"
)
...
...
@@ -87,7 +87,7 @@ class User(commands.Cog):
embed
.
add_field
(
name
=
"
Status:
"
,
value
=
str
(
member
.
status
),
inline
=
True
)
embed
.
add_field
(
name
=
"
Activity:
"
,
value
=
f
"
{
str
(
member
.
activity
.
type
).
split
(
'
.
'
)[
-
1
].
title
()
if
member
.
activity
else
'
N/A
'
}
{
member
.
activity
.
name
if
member
.
activity
else
''
}
"
,
inline
=
True
)
embed
.
add_field
(
name
=
"
Bot:
"
,
value
=
member
.
bot
)
embed
.
add_field
(
name
=
"
Last
Warn:
"
,
value
=
t
)
embed
.
add_field
(
name
=
"
Warn
s
:
"
,
value
=
t
)
await
ctx
.
send
(
embed
=
embed
)
@commands.command
(
brief
=
"
Fetch the profile picture of a user.
"
,
description
=
"
Fetch the profile picture of a user.
"
,
aliases
=
[
"
pfp
"
,
"
profile
"
,
"
pp
"
])
...
...
@@ -268,7 +268,8 @@ class User(commands.Cog):
mycursor
.
execute
(
cmd
)
myresult8
=
mycursor
.
fetchall
()
if
myresult8
:
disabledcmds
=
len
(
myresult8
)
disabledcmds2
=
[
str
(
aa
)[:
-
3
][
2
:]
for
aa
in
myresult8
]
disabledcmds
=
"
,
"
.
join
(
disabledcmds2
)
else
:
disabledcmds
=
"
There is no commands disabled
"
...
...
@@ -289,7 +290,7 @@ class User(commands.Cog):
embed
.
add_field
(
name
=
"
Autorole
"
,
value
=
f
"
{
autorole2
}
"
)
embed
.
add_field
(
name
=
"
Prefix
"
,
value
=
f
"
{
prefix
}
"
)
embed
.
add_field
(
name
=
"
Logging channel
"
,
value
=
f
"
{
logchannel
}
"
)
embed
.
add_field
(
name
=
"
Disabled commands
size
"
,
value
=
f
"
{
disabledcmds
}
"
)
embed
.
add_field
(
name
=
"
Disabled commands
"
,
value
=
f
"
{
disabledcmds
}
"
)
embed
.
add_field
(
name
=
"
Muted role
"
,
value
=
f
"
{
mutedrole
}
"
)
await
ctx
.
send
(
embed
=
embed
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment