Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Weasht
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
Emir Hamza
Weasht
Commits
904f4865
Commit
904f4865
authored
Jan 23, 2021
by
Reviath
Browse files
Options
Downloads
Patches
Plain Diff
Update commands/kullanıcı.js, commands/linkkısalt.js, commands/linkler.js files
parent
ec8d2275
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
commands/kullanıcı.js
+1
-1
1 addition, 1 deletion
commands/kullanıcı.js
commands/linkkısalt.js
+20
-9
20 additions, 9 deletions
commands/linkkısalt.js
commands/linkler.js
+14
-3
14 additions, 3 deletions
commands/linkler.js
with
35 additions
and
13 deletions
commands/kullanıcı.js
+
1
−
1
View file @
904f4865
...
...
@@ -50,5 +50,5 @@ connection.query(sql, function (err, result) {
};
module
.
exports
.
help
=
{
name
:
'
kullanıcı
'
,
aliases
:
[
'
k
'
,
'
yardım-kullanıcı
'
]
aliases
:
[
'
k
'
,
'
yardım-kullanıcı
'
,
'
user
'
,
'
help-user
'
]
};
This diff is collapsed.
Click to expand it.
commands/linkkısalt.js
+
20
−
9
View file @
904f4865
const
Discord
=
require
(
'
discord.js
'
);
const
shorten
=
require
(
'
isgd
'
);
exports
.
run
=
(
client
,
message
,
args
,
tools
)
=>
{
if
(
!
message
.
guild
)
{
return
}
message
.
delete
();
exports
.
run
=
(
client
,
message
,
args
,
connection
)
=>
{
var
sql
=
`SELECT dil FROM guilds WHERE guildid='
${
guildid
}
'`
;
connection
.
query
(
sql
,
function
(
err
,
result
)
{
if
(
result
==
"
tr
"
){
if
(
!
args
[
0
])
return
message
.
channel
.
send
(
'
Bir link göndermelisin
'
)
if
(
!
args
[
1
])
{
shorten
.
shorten
(
args
[
0
],
function
(
res
)
{
if
(
res
.
startsWith
(
'
Hata:
'
))
message
.
channel
.
send
(
'
**Lütfen Doğru URL Girin.**
'
);
message
.
channel
.
send
(
`**<
${
res
}
>**`
);
})
}
else
{
...
...
@@ -22,9 +19,23 @@ message.delete();
message
.
channel
.
send
(
`<
${
res
}
>`
);
})
}
}
else
{
if
(
!
args
[
0
])
return
message
.
channel
.
send
(
'
You should send a link
'
)
if
(
!
args
[
1
])
{
shorten
.
shorten
(
args
[
0
],
function
(
res
)
{
if
(
res
.
startsWith
(
'
Hata:
'
))
message
.
channel
.
send
(
'
Something went wrong
'
);
message
.
channel
.
send
(
`
${
res
}
`
);
})
}
else
{
shorten
.
custom
(
args
[
0
],
args
[
1
],
function
(
res
)
{
if
(
res
.
startsWith
(
'
Hata:
'
))
message
.
channel
.
send
(
`
${
res
}
`
);
message
.
channel
.
send
(
`
${
res
}
`
);
})
}
}
});
};
module
.
exports
.
help
=
{
name
:
'
linkkısalt
'
,
aliases
:
[
'
kısalt
'
,
'
link-kısalt
'
]
aliases
:
[
'
kısalt
'
,
'
link-kısalt
'
,
'
shorten
'
]
};
This diff is collapsed.
Click to expand it.
commands/linkler.js
+
14
−
3
View file @
904f4865
const
Discord
=
require
(
'
discord.js
'
);
exports
.
run
=
(
client
,
message
,
params
)
=>
{
exports
.
run
=
(
client
,
message
,
connection
)
=>
{
var
sql
=
`SELECT dil FROM guilds WHERE guildid='
${
guildid
}
'`
;
connection
.
query
(
sql
,
function
(
err
,
result
)
{
if
(
result
==
"
tr
"
){
const
links
=
new
Discord
.
MessageEmbed
()
.
setTitle
(
'
İşte Tüm Linklerim
'
)
.
setColor
(
0xFFF00F
)
.
setThumbnail
(
'
https://cdn.discordapp.com/avatars/771043242242342962/b1d1422dd19ed7f299e145b99c6fd4c4.png?size=4096
'
)
.
addField
(
'
Bota Oy Vererek Büyümesini Sağlayabilirsiniz
'
,
true
)
.
setThumbnail
(
client
.
user
.
avatarURL
())
.
setDescription
(
'
[DBL Linkim](https://top.gg/bot/771043242242342962)
\n
[Davet Linkim](https://discordapp.com/oauth2/authorize?client_id=771043242242342962&scope=bot&permissions=8)
\n
[Sunucum](https://discord.gg/NCzZdB9Etf)
'
)
message
.
channel
.
send
(
links
)
}
else
{
const
links
=
new
Discord
.
MessageEmbed
()
.
setTitle
(
'
Here is my links
'
)
.
setColor
(
0xFFF00F
)
.
setThumbnail
(
client
.
user
.
avatarURL
())
.
setDescription
(
'
[Vote Link](https://top.gg/bot/771043242242342962/vote)
\n
[Invite Link](https://discordapp.com/oauth2/authorize?client_id=771043242242342962&scope=bot&permissions=8)
\n
[Server](https://discord.gg/NCzZdB9Etf)
'
)
message
.
channel
.
send
(
links
)
}
});
}
module
.
exports
.
help
=
{
name
:
'
linkler
'
,
...
...
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