-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
1944 lines (1594 loc) · 93 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: utf8 -*-
#импорт модулей
from mem import memepost
from asyncio.tasks import sleep
from goldpass import goldserver
import datetime, time
import nextcord
from WebServer import keep_alive
from code1 import *
from bottoken import token
from nextcord.ext import commands
from nextcord.ext.commands import MissingPermissions
from Cybernator import Paginator
import asyncio
import random
import json
from backlist import blackmember
from discord.utils import get
import discord
import requests
from datetime import timedelta, datetime
import datetime
from speakIU import shards
from prefix import *
import psutil
import platform
import aiohttp
intents = discord.Intents.default()
intents.members = True
intents.all()
#префикс бота
bot = commands.AutoShardedBot(shard_count=shards, command_prefix=get_prefix)
bot.remove_command('help')
#@commands.is_owner()
#статус бота
@bot.event
async def on_ready():
print('Felter bot started!')
#await bot.change_presence(
# activity=discord.Custom(
# name=f'f+help | https://bot.felterbot.ga/'))
print(f"{bot.user}")
await bot.change_presence(
activity=discord.Streaming(
name=f'f+help | Hовый бот!', url='https://www.twitch.tv/tim_eiger', twitch_name="tim_eiger"))
@bot.event
async def on_message(message):
prefixx = await bot.get_prefix(message)
ping = round(bot.latency * 1000)
p = prefixx
if message.content == "felter":
embed=nextcord.Embed(title="Справка по боту", description=f"Мой префикс - `{p}`\n Узнать мои команды - `{p}help`\n Мой пинг - ```cs\n# {ping}ms #\n```", colour=nextcord.Colour.random(), timestamp=datetime.datetime.now())
embed.set_footer(text=f"{message.author}", icon_url=f"{message.author.avatar}")
embed.set_author(name="Felter bot", icon_url="https://cdn.discordapp.com/attachments/888376246029918228/948743947088461834/777557308258517032.png")
await message.reply(embed=embed)
await bot.process_commands(message)
@bot.event
async def on_connect():
print("-----------")
@bot.event
async def on_disconnect():
print("Felter bot, disconnect on discord!\n---------")
@bot.event
async def on_shard_connect(shard_id):
print(f"Shard: {shard_id}\n Connected!\n----------------")
@bot.event
async def on_invite_create(invite):
print(f"New create invite URL - {invite}\n-----------")
@bot.event
async def on_shard_ready(shard_id):
print(f"Shard: {shard_id}\nOn_Ready\n------------------")
@bot.event
async def on_shard_resumed(shard_id):
print(f"Shard: {shard_id}\n Resume connection\n----------------")
@bot.event
async def on_command_error(ctx, error):
# if isinstance(error, commands.CommandNotFound):
# embed = await ctx.reply(embed=discord.Embed(
# title=f":no_entry: Erorr (404) ",
# description=
# f' {ctx.author.mention} , **Данной команды не существует, \n или она отключена разработчиком** :heart_eyes: .',
# color=discord.Color.red()))
# await embed.add_reaction('❌')
if isinstance(error, commands.CommandOnCooldown):
times = round(error.retry_after, 2)
global ctxx
ctxx = ctx.author.id
if times <= 60:
embed5 = await ctx.reply(embed=nextcord.Embed(
title=f':no_entry: Erorr',
description=
f'Повторите через `{error.retry_after :.0f}` сек\n **Ид ошибки**: `{random.randint(81275782135,7126542153216851)}`',
colour=0xe74c3c, timestamp=datetime.datetime.now()))
await embed5.add_reaction('❌')
await sleep(10)
await embed5.delete()
elif times > 60:
embed4 = await ctx.reply(embed=nextcord.Embed(
title=f':no_entry: Erorr',
description=
f'Повторите примерно через `{int(times//60)}` минут `{int(times%60)}` секунд\n **ID Error**: `{random.randint(81275782135,7126542153216851)}`',
colour=discord.Color.red(), timestamp=datetime.datetime.now()))
await embed4.add_reaction('❌')
await sleep(10)
await embed4.delete()
if isinstance(error, commands.MissingRequiredArgument):
fullCommandName = ctx.command.qualified_name
split = fullCommandName.split(" ")
executedCommand = str(split[0])
prefix = await bot.get_prefix(ctx.message)
p = prefix
skm123 = await ctx.reply(embed=nextcord.Embed(
title=f':no_entry: Erorr',
description=
f'Нет аргументов! Ведите их!\n Пример: {p}{executedCommand} <Arguments>\n **ID ERROR**: `{random.randint(81275782135,7126542153216851)}`\n```cs\n #Символы \'<\', \'>\' вставлять не надо!\n```',
colour=nextcord.Color.red(), timestamp=datetime.datetime.now()))
await skm123.add_reaction('❌')
await sleep(10)
await skm123.delete()
if isinstance(error, MissingPermissions):
skm = await ctx.reply(embed=nextcord.Embed(
title=f":no_entry: Erorr!",
description=f' {ctx.author.mention} , у вас недостаточно прав!.',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
await skm.add_reaction('❌')
await sleep(10)
await skm.delete()
if isinstance(error, commands.MemberNotFound):
skm1 = await ctx.reply(embed=nextcord.Embed(
title=f":no_entry: Erorr!",
description=
f' {ctx.author.mention} , мне не удалось найти этого участника. Проверьте правильность написание всех букв и цифр!\n```cs\n#Пример: @участник\n```',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
await skm1.add_reaction('❌')
await sleep(10)
await skm1.delete()
if isinstance(error, commands.BotMissingPermissions):
skm12 = await ctx.reply(embed=nextcord.Embed(
title=f":no_entry: Erorr!",
description=
f' {ctx.author.mention} , У меня нету прав для этого действия, выдайте мне роль с отметкой "Administator".',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
await skm12.add_reaction('❌')
await sleep(10)
await skm12.delete()
if isinstance(error, commands.RoleNotFound):
skm11 = await ctx.reply(embed=nextcord.Embed(
title=f":no_entry: Erorr!",
description=
f' {ctx.author.mention} , мне не удалось найти эту роль. Проверьте правильность написание всех букв и цифр!\n```cs\n#Пример: @роль\n```',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
await skm11.add_reaction('❌')
await sleep(10)
await skm11.delete()
@commands.cooldown(rate=1, per=10, type=commands.BucketType.user)
@bot.command()
async def meme_test(ctx):
embed = nextcord.Embed(title="Random mem", description="", colour=nextcord.Colour.random(), timestamp=datetime.datetime.now())
async with aiohttp.ClientSession() as cs:
async with cs.get('https://www.reddit.com/r/dankmemes/new.json?sort=hot') as r:
res = await r.json()
embed.set_image(url=res['data']['children'] [random.randint(0, 25)]['data']['url'])
await ctx.send(embed=embed)
@commands.cooldown(rate=1, per=6, type=commands.BucketType.user)
@bot.command()
async def search(ctx, *, ja):
s = ja
ja = ja.replace(' ', '+')
embed=nextcord.Embed(title="Поиск в Яндекс", description=f"[Ссылка на ваш запрос](https://yandex.ru/search/?lr=38&text=" + ja + ")", colour=nextcord.Colour.random(), timestamp=datetime.datetime.now())
embed.set_footer(text=f"{ctx.author}", icon_url=f"{ctx.author.avatar}")
await ctx.reply(embed=embed)
@commands.has_permissions(administrator=True)
@commands.cooldown(rate=1, per=10, type=commands.BucketType.user)
@bot.command()
async def embed(ctx):
def check(message):
return message.author == ctx.author and message.channel == ctx.channel
msg1 = await ctx.reply(embed = discord.Embed(title='Название', description='Укажите название!', color=0x2e2f33, timestamp=datetime.datetime.now()))
title = await bot.wait_for('message', check=check)
msg2 = await ctx.reply(embed = discord.Embed(title='Описание', description="Укажите описание", color=0x2e2f33, timestamp=datetime.datetime.now()))
desc = await bot.wait_for('message', check=check)
await ctx.send(embed=nextcord.Embed(title=f"{title.content}", description=f"{desc.content}", color=nextcord.Colour.random(), timestamp=datetime.datetime.now()))
await msg1.delete()
await msg2.delete()
await desc.delete()
await title.delete()
@commands.has_permissions(administrator=True)
@bot.command()
@commands.cooldown(rate=1, per=60, type=commands.BucketType.user)
async def checkuser(ctx, text):
if f'{text}' in blackmember:
await ctx.reply(embed=nextcord.Embed(
title=f"Check for user",
description=
f'User: <@!{text}>\nID: {text}\n Находится в чёрном списке бота',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
elif text == None:
skm12 = await ctx.reply(embed=nextcord.Embed(
title=f":no_entry: Erorr!",
description=
f' {ctx.author.mention} , мне не удалось найти этого участника. Проверьте правильность написание всех букв и цифр!',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
await skm12.add_reaction('❌')
else:
await ctx.reply(embed=nextcord.Embed(
title=f"Check for user",
description=
f'User: <@!{text}>\nID: {text}\nНе Находится в чёрном списке бота',
color=nextcord.Color.blue(), timestamp=datetime.datetime.now()))
@bot.event
async def on_command_completion(ctx):
channel = bot.get_channel(912328386658058251)
fullCommandName = ctx.command.qualified_name
split = fullCommandName.split(" ")
executedCommand = str(split[0])
#await channel.send(embed=nextcord.Embed(
# title=f"Пользователь: {ctx.message.author.id}",
# description=f'Ид Сервера: {ctx.message.guild.id}\nКанал: {ctx.channel.name}\nУпоминание канала: <#{ctx.channel.id}>\nИд Канала: {ctx.channel.id}\n Пользователь: {ctx.message.author.mention}\nНазвание сервера: {ctx.guild.name}\n Команда: f+{executedCommand}',
#color=nextcord.Color.from_rgb(88, 101, 242)))
now = datetime.datetime.now()
file = open(f"логи/{ctx.message.guild.id}.txt", "a")
file.write(
f"Название сервера: {ctx.guild.name}\nИд Сервера: {ctx.message.guild.id}\nКоманда: f+{executedCommand}\nПользователь: {ctx.message.author.id}\nНик пользователя: {ctx.message.author}\nИд Канала: {ctx.channel.id}\nВремя: {now.strftime('%Y-%m-%d %H:%M:%S')}\n-----------------\n"
)
class Code(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.has_permissions(administrator=True)
@bot.command(aliases=["cod", "CODE", "cmd"])
@commands.cooldown(rate=1, per=5, type=commands.BucketType.guild)
async def code(ctx, text, *, code):
if text == send:
await ctx.send(code)
elif text == delete:
await ctx.channel.purge(limit=2)
elif text == mention:
await ctx.send(f"<@{code}>")
elif text == sendemb:
await ctx.send(
embed=nextcord.Embed(description=code, color=nextcord.Color.from_rgb(54, 57, 62), timestamp=datetime.datetime.now()))
elif text == change_name_server:
send1 = await ctx.reply(f"Server name change: {code}")
server = bot.get_guild(ctx.guild.id)
await server.edit(name=code)
await sleep(5)
await send1.delete()
elif text == exit_bot:
await ctx.reply(
"вы захотели кикнуть себя, пока\n you they wanted to kick myself, good boy\n you kick in 5 second"
)
await sleep(5)
author = ctx.author
await author.kick(reason="Kick for cmd command")
elif text == 'help':
prefix = await bot.get_prefix(ctx.message)
p = prefix
message = await ctx.send(" \\ ")
await sleep(0.1)
await message.edit(content="|")
await sleep(0.1)
await message.edit(content="/")
await sleep(0.3)
await message.delete()
await ctx.reply(
f"ℹ️\n`{p}code send <you text>` send message \n `{p}code delete 1` delete 1 message\n `{p}code mention <id member>` mention for id member\n `{p}code sendemb <you text>` send text in embed\n`{p}code change_name_server <New name server>` Change guild name! \n`{p}code exit_bot 1` you kick is from server\nℹ️ By felter bot CMD\n"
)
else:
await ctx.reply("Команда не найдена\nComand not found")
@bot.command(aliases=["donate"])
async def donation(ctx):
embed=nextcord.Embed(
title="Ссылки где покупать донат",
description="ДонейшенАлтертс = https://www.donationalerts.com/r/felterbotdnt\n для доната нужно в коментарии указать айди своего сервера, узнать его можно с помощью команды check", colour=nextcord.Colour.random(), timestamp=datetime.datetime.now()
)
embed.set_footer(text=ctx.author, icon_url=ctx.author.avatar)
await ctx.reply(embed=embed)
@bot.command(aliases=["Case_cs", "cs", "Case_Cs"])
@commands.cooldown(rate=1, per=75, type=commands.BucketType.user)
async def case_csgo_open(ctx):
gold = goldserver
if f'{ctx.message.guild.id}' in gold:
gama = ["Рубин", "Эмеральд", "Сапфир", "Фаза 1", "Фаза 2", "Фаза 3", "Фаза 4", "Фаза 5", "Фаза 6", "Фаза 7", "Фаза 8"]
gloves = ["★ Перчатки спецназа | Мраморный градиент", "★ Перчатки спецназа | Полевой агент", "★ Спортивные перчатки | Кровавый шемах","★ Мотоциклетные перчатки | Бросаю дымовую", "★ Спортивные перчатки | Ноктс", "★ Спортивные перчатки | Ящик Пандоры", "★ Мотоциклетные перчатки | Мята", "★ Перчатки спецназа | Изумрудная сеть", "★ Перчатки спецназа | Кровавое кимоно", "★ Мотоциклетные перчатки | Мятная прохлада", "★ Перчатки спецназа | Основа", "★ Мотоциклетные перчатки | Бах!", "★ Водительские перчатки | Лунный узор"]
knife = ["★ Штык-нож M9 | Вороненая сталь", "★ Штык-нож M9 | Кровавая паутина", "★ Штык-нож M9 | Северный лес", "★ Штык-нож M9 | Поверхностная закалка", "★ Штык-нож M9 | Пиксельный камуфляж «Лес»", "★ Штык-нож M9 | Патина", "★ Штык-нож M9 | Градиент", "★ Штык-нож M9 | Городская маскировка", "★ Штык-нож M9 | Убийство", f"★ Фальшион | Волны ({random.choice(gama)})", "★ Нож Бабочка | Легенды", "★ Нож бабочка | Автотроника", f"★ Нож бабочка | Волны ({random.choice(gama)})", "★ Стилет | Убийство", "★ Стилет", "★ Штык-нож M9", "★ Медвежий нож | Пыльник", "★ Медвежий нож", f"★ Стилет | Волны ({random.choice(gama)})", "★ Тычковые ножи | Автотроника", "★ Тычковые ножи | Убийство", "★ Фальшион | Дамасская сталь", "★ Фальшион | Легенды", f"★ Фальшион | Волны ({random.choice(gama)})", "★ Керамбит | Gold", "★ Керамбит"]
pat = ["Прямо с завода", "Немного поношенное", "После полевых испытаний", "После полевых испытаний", "После полевых испытаний", "Немного поношенное", "Поношенное", "Закалённое в боях", "Закалённое в боях", "Закалённое в боях", "Закалённое в боях", "Закалённое в боях", "Закалённое в боях"]
stattrack = ["StatTrak™", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . "]
blue = random.choice(["UMP-45 | Дневная лилия(Армейское(синие))", "CZ75-Auto | Красный ястреб(Армейское(Синие))", "Револьвер R8 | Выживший(Армейское(Синие))", "P90 | Сцепление(Армейское(Синие))", "MP9 | Капилляры(Армейское(Синие))", "G3SG1 | Лазурная зебра(Армейское[Синие])", "ПП-19 Бизон | Знак воды(Армеское[Синее])", "ПП-19 Бизон | Знак воды(Армеское[Синее])", "SCAR-20 | Латунь(Армейское(Синее))", "Five-SeveN | Городская опасность(Армейское(Синие))"])
blue1 = random.choice(["UMP-45 | Дневная лилия(Армейское(синие))", "CZ75-Auto | Красный ястреб(Армейское(Синие))", "Револьвер R8 | Выживший(Армейское(Синие))", "P90 | Сцепление(Армейское(Синие))", "MP9 | Капилляры(Армейское(Синие))", "G3SG1 | Лазурная зебра(Армейское[Синие])", "ПП-19 Бизон | Знак воды(Армеское[Синее])", "ПП-19 Бизон | Знак воды(Армеское[Синее])", "SCAR-20 | Латунь(Армейское(Синее))", "Five-SeveN | Городская опасность(Армейское(Синие))"])
purple = random.choice(["SSG 08 | Призрачный фанатик(Запрещенное(Фиолетовое))", "P90 | Слепое пятно(Запрещенное[Фиолетовое])", "AK-47 | Синий глянец(Запрещенное[Фиолетовое])", "Glock-18 | Полимерные листья(Запрещеное(Фиолетовое))", "Desert Eagle | Изумрудный Ёрмунганд(Запрещенное(Фиолетовое))", "USP-S | Взгляд в прошлое(Запрещенное(Фиолетовое))"])
pink = random.choice(["USP-S | Орион(Засекреченное(Розовое))", "M4A1-S | Нитро(Засекреченное(Розовое))", "AWP | Электрический улей(Засекреченное[Розовое])", "Usp-s | Извилины(Засекреченое(розовое))", "MP9 | Дикая лилия(Засекреченное(Розовое))", "Desert Eagle | Механо-пушка(Засекреченное(Розовое))", "SG 553 | Сайрекс(Засекреченное(Розовое))", f"AK-47 | Поверхностная закалка(Засекреченное(Розовое)) - Patern=({random.randint(1,20)})"])
seriy = random.choice(["Tec-9 | Армейская сетка(Ширпотреб(серое))", "MP5-SD | Бамбуковый(ШирПотреб(Серое))"])
golden = random.choice([f"Перчатки! - {random.choice(gloves)}", "M4A4 | Вой(Контрабанда(золотой))", "Нож! - " + str(random.choice(knife))])
red = random.choice(["USP-S | Подтвержденное убийство(Тайное(Красное))", "AK-47 | Вулкан(Тайное(Красное))", "M4A4 | Азимов(Тайное(Красное))", "M4A4 | Рентген(Тайное[Красное])", "AK-47 | Золотая Арабеска(Тайное(Красное))", "Desert Eagle | Поток информации(Тайное(Красное))", "Mac-10 | Неоновый гонщик(Тайное(Красное))", "AWP | История о драконе(Тайное(Красное))", "AK-47 | Азимов(Тайное(красное))"])
msg = await ctx.reply(embed=nextcord.Embed(
title="Кейс из Кс-го",
description=f"`----------------------------------`\n`||` {random.choice([blue, purple, pink, seriy, golden, red])} `||`\n`----------------------------------`", color=nextcord.Colour.random()
))
await sleep(0.2)
await msg.edit(embed=nextcord.Embed(
title="Кейс из Кс-го",
description=f"`----------------------------------`\n`||` {random.choice([blue, purple, pink, seriy, golden, red])} `||`\n`----------------------------------`", color=nextcord.Colour.random()
))
await sleep(0.2)
await msg.edit(embed=nextcord.Embed(
title="Кейс из Кс-го",
description=f"`----------------------------------`\n`||` {random.choice([blue, purple, pink, seriy, golden, red])} `||`\n`----------------------------------`", color=nextcord.Colour.random()
))
await sleep(0.3)
await msg.edit(embed=nextcord.Embed(
title="Кейс из Кс-го",
description=f"`----------------------------------`\n`||` {random.choice([blue, purple, pink, seriy, golden, red])} `||`\n`----------------------------------`", color=nextcord.Colour.random()
))
await sleep(0.4)
await msg.edit(embed=nextcord.Embed(
title="Кейс из Кс-го",
description=f"`----------------------------------`\n`||` {random.choice([blue, purple, pink, seriy, golden, red])} `||`\n`----------------------------------`", color=nextcord.Colour.random()
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Кейс из Кс-го",
description=f"`----------------------------------`\n`||` {random.choice([blue, purple, pink, seriy, golden, red])} `||`\n`----------------------------------`", color=nextcord.Colour.random()
))
case_end_drop = random.choice([blue, purple, pink, seriy, golden, red, blue, blue, blue, seriy, seriy])
await sleep(1.5)
await msg.edit(embed=nextcord.Embed(
title="Кейс из Кс-го",
description=f"`----------------------------------`\n`||` {random.choice([blue, purple, pink, seriy, golden, red])} `||`\n`----------------------------------`", color=nextcord.Colour.random()
))
drop_case = random.choice([blue, purple, pink, seriy, golden, red, blue, blue, blue, blue, seriy, seriy, blue, blue, blue, blue, blue, blue, blue])
await sleep(2)
if drop_case == blue:
await msg.edit(embed=nextcord.Embed(
title="Кейс Кс-го",
description=f"Информация о вашем дропе:\nНазвание: ||{drop_case}|| {random.choice(stattrack)}\nИзнос: {random.choice(pat)}",
color=nextcord.Colour.blue(), timestamp=datetime.datetime.now()))
embed.set_footer(text=ctx.author, icon_url=ctx.author.avatar)
await msg.edit(embed=embed)
elif drop_case == purple:
await msg.edit(embed=nextcord.Embed(
title="Кейс Кс-го",
description=f"Информация о вашем дропе:\nНазвание: ||{drop_case}|| {random.choice(stattrack)}\nИзнос: {random.choice(pat)}",
color=nextcord.Colour.purple(), timestamp=datetime.datetime.now()))
embed.set_footer(text=ctx.author, icon_url=ctx.author.avatar)
await msg.edit(embed=embed)
elif drop_case == seriy:
await msg.edit(embed=nextcord.Embed(
title="Кейс Кс-го",
description=f"Информация о вашем дропе:\nНазвание: ||{drop_case}|| {random.choice(stattrack)}\nИзнос: {random.choice(pat)}",
color=nextcord.Colour.from_rgb(54, 57, 62), timestamp=datetime.datetime.now()))
embed.set_footer(text=ctx.author, icon_url=ctx.author.avatar)
await msg.edit(embed=embed)
elif drop_case == golden:
embed=nextcord.Embed(
title="Кейс Кс-го",
description=f"Информация о вашем дропе:\nНазвание: ||{drop_case}|| {random.choice(stattrack)}\nИзнос: {random.choice(pat)}",
color=nextcord.Colour.gold(), timestamp=datetime.datetime.now())
embed.set_footer(text=ctx.author, icon_url=ctx.author.avatar)
await msg.edit(embed=embed)
elif drop_case == red:
embed=nextcord.Embed(
title="Кейс Кс-го",
description=f"Информация о вашем дропе:\nНазвание: ||{drop_case}|| {random.choice(stattrack)}\nИзнос: {random.choice(pat)}",
color=nextcord.Colour.red(), timestamp=datetime.datetime.now())
embed.set_footer(text=ctx.author, icon_url=ctx.author.avatar)
await msg.edit(embed=embed)
elif drop_case == pink:
embed=nextcord.Embed(
title="Кейс Кс-го",
description=f"Информация о вашем дропе:\nНазвание: ||{drop_case}||{random.choice(stattrack)}\nИзнос: {random.choice(pat)}",
color=nextcord.Colour.from_rgb(255, 20, 147), timestamp=datetime.datetime.now())
embed.set_footer(text=ctx.author, icon_url=ctx.author.avatar)
await msg.edit(embed=embed)
else:
await ctx.reply(embed=nextcord.Embed(
description=
f'Извините эта команда доступна только для тех у кого есть золотой сервер, купить его вы можете на сервере тех.поддержки \"Felter News\"',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
@bot.command(aliases=["case", "open_case"])
@commands.cooldown(rate=1, per=3600, type=commands.BucketType.user)
async def case_open(ctx):
gold = goldserver
global case
case = ["<:coins:919381565837025290> Монетка", "<a:avatar_servers:919973036650803210> Радужный квадрат", "Деньги", "Алмазы", "Кнопка", "Золото", "Метал", "Перчатки!", "Буква (п)", "Буква (м)", "Буква (у)", "Дорогие часы", "Не-че-го", "Нечего", "Нечего", "Число (5)", "Палка капалка", "Буква (и)", "Буква (р)", "Желатин", "{p} (Переменная префикса) - (если вам выпала то можете сменить префикс бота на любом сервере)", "DROP_CASE_NOT_FOUND. ERROR 404"]
case1 = random.choice(case)
msg = await ctx.reply(embed=nextcord.Embed(
title="Открытие Кейса",
description="Открываем....",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Открытие Кейса",
description="Открываем....\n\n `|.......`",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Открытие Кейса",
description="Открываем....\n\n `||......`",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Открытие Кейса",
description="Открываем....\n\n `|||.....`",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Открытие Кейса",
description="Открываем....\n\n `||||....`",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Открытие Кейса",
description="Открываем....\n\n `|||||...`",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Открытие Кейса",
description="Открываем....\n\n `||||||..`",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Открытие Кейса",
description="Открываем....\n\n `|||||||.`",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Открытие Кейса",
description="Открываем....\n\n `||||||||`",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Открытие Кейса",
description=f"Поздравляем вам выпало: {case1}",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(2)
channel = bot.get_channel(925125586828005426)
await channel.send(embed=nextcord.Embed(
title="Case command!",
description=f"Пользователь: {ctx.author.mention}, {ctx.author}\n\n Drop: {case1}\n\nServer: {ctx.guild.id}",
color=nextcord.Color.from_rgb(54, 57, 62), timestamp=datetime.datetime.now()
))
@bot.command(aliases=["box"])
#@commands.cooldown(rate=1, per=3600, type=commands.BucketType.user)
async def box_open_case_requier_admin_shop_rorkes(ctx):
#await ctx.reply(embed=nextcord.Embed(title="Ошибка!", description="Извините эта команда доступна только во время праздников", color=nextcord.Colour.red(), timestamp=datetime.datetime.now()))
drop = ["Земля", "Семечки", "Дерево", "Метал", "Золото", "Конфеты", "Рюкзак", "Вейп", "Алмаз", "Ламинат", "Ленолиум", "Кнопка", "Лошка", "Перчатки", "Премиум на 1 месяц(в боте)", "Золотой билет", "Премиум на 2 месяца", "Земля", "Семечки", "Палка", "Земля", "Земля", "Премиум на 3 месяца", "Земля", "Пустота", "Премиум на 4 месяца", "Земля","Воздух", "Носки", "Пенал", "Роль на сервере поддержки", "Земля", "Конфеты", "Земля", "Семечки", "Носки", "Пустота", "Метал", "Вейп", "Земля", "Земля", "Земля", "Земля", "Воздух", "Земля", "Земля", "Земля", "Земля", "Земля", "Земля", "Земля"]
channel = bot.get_channel(925125586828005426)
global drop1
drop1 = random.choice(drop)
msg = await ctx.reply(embed=nextcord.Embed(
title="Открытие подарка",
description="Открываем....",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await msg.edit(embed=nextcord.Embed(
title="Подарок",
description=f"Вам выпало: ||**{drop1}**||\n\nПодсказка: Подарки по типу: Премиум на 1 месяц можно активировать. На сервере тех.Поддержки",
color=nextcord.Color.from_rgb(54, 57, 62)
))
await sleep(1)
await channel.send(embed=nextcord.Embed(
title=f"Пользователю: {ctx.author}",
description=f"Выпало: {drop1}\n mention: {ctx.author.mention}\n Server: {ctx.guild.id}",
color=nextcord.Color.from_rgb(54, 57, 62)
))
@bot.command()
@commands.cooldown(rate=2, per=23, type=commands.BucketType.user)
async def returndrop(ctx):
await ctx.reply(embed=nextcord.Embed(
title=f"Ваш прошлый дроп",
description=f"{drop1}",
color=nextcord.Color.from_rgb(54, 57, 62), timestamp=datetime.datetime.now()
))
@bot.event
async def on_guild_join(guild):
channel = bot.get_channel(916027696721592410)
await channel.send(embed=nextcord.Embed(
title=f"бот был добавлен!",
description=
f'<@&888351447434027049>\n ID сервера: {guild.id}\n Name servers: {guild.name}',
color=nextcord.Color.from_rgb(88, 101, 242), timestamp=datetime.datetime.now()))
with open("prefixes.json", "r") as f:
prefixes = json.load(f)
prefixes[str(guild.id)] = "f+"
with open("prefixes.json", "w") as f:
json.dump(prefixes, f)
role1 = await guild.create_role(name="felter bot")
@bot.command()
async def unban(ctx, member):
await unban(member, reason=f"unbaned for - ({ctx.author})")
await ctx.reply(embed=nextcord.Embed(title="<:yes:945469612076720128> Разбан", description=f"Пользователь: <@&{member}>\n\nАдминистратор: {ctx.author.mention}", color=nextcord.Color.blue(), timestamp=datetime.datetime.now()))
@bot.event
async def on_guild_remove(guild):
channel = bot.get_channel(916027696721592410)
await channel.send(embed=nextcord.Embed(
title=f"бот был Удалён",
description=
f'<@&888351447434027049>\n ID сервера: {guild.id}\n Name servers: {guild.name}',
color=nextcord.Color.from_rgb(88, 101, 242), timestamp=datetime.datetime.now()))
@commands.has_permissions(administrator=True)
@bot.command()
@commands.cooldown(rate=1, per=3600, type=commands.BucketType.user)
async def premtick(ctx, *, text):
channel = bot.get_channel(916316833827651604)
gold = goldserver
if f'{ctx.message.author.id}' in blackmember:
await ctx.reply(
"Извините но вы в чёрном списке бота, причину можно узнать у модераторов/сапортов/разработчиков"
)
elif len(text) < 20:
iiiii = await ctx.reply(embed=nextcord.Embed(
title=f':no_entry: Erorr',
description=
f'```cs\n#Извините, но вип обращение к разработчикам должно содержать минимум 20 символов!\n```',
colour=nextcord.Color.red(), timestamp=datetime.datetime.now()))
await iiiii.add_reaction('❌')
elif len(text) > 100:
iiiiii = await ctx.reply(embed=nextcord.Embed(
title=f':no_entry: Erorr',
description=
f'```cs\n#Извините, но вип обращение может содержать максимум 100 символов!\n```',
colour=nextcord.Color.red(), timestamp=datetime.datetime.now()))
await iiiiii.add_reaction('❌')
elif f'{ctx.message.guild.id}' in gold:
await channel.send(embed=nextcord.Embed(
title=
f"Новое вип обращение! \nПользователь: {ctx.message.author.id}",
description=
f'Ид Сервера: {ctx.message.guild.id}\nКанал: {ctx.channel.name}\n Пользователь: {ctx.message.author.mention}\nУпоминание канала: <#{ctx.channel.id}>\nНазвание сервера: {ctx.guild.name}\nТекст: {text}',
color=nextcord.Color.from_rgb(88, 101, 242), timestamp=datetime.datetime.now()))
file = open(f"ticket's/premtick{ctx.message.guild.id}.txt", "a")
file.write(
f"Premium tick\nID Members: {ctx.message.author.id}\nGUILD ID: {ctx.message.guild.id}\nTEXT: {text}\n---------------"
)
await ctx.reply(embed=nextcord.Embed(
title=f"{ctx.author}",
description=
f'Ваше вип обращение было отправлено разработчикам\nВаш текст: `{text}`',
color=nextcord.Color.from_rgb(88, 101, 242), timestamp=datetime.datetime.now()))
else:
await ctx.reply(embed=nextcord.Embed(
description=
f'Извините эта команда доступна только для тех у кого есть золотой сервер, купить его вы можете на сервере тех.поддержки \"Felter News\"',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
@commands.has_permissions(administrator=True)
@bot.command(aliases=["pr", "set"])
@commands.cooldown(rate=1, per=30, type=commands.BucketType.guild)
async def prefix(ctx, prefix):
gold = goldserver
prefixx = await bot.get_prefix(ctx.message)
if len(prefix) > 10:
await ctx.reply(embed=nextcord.Embed(
description=
f'Извините, ваш префикс может содержать максимум 10 символов.',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
elif prefix == prefixx:
await ctx.reply(embed=nextcord.Embed(
description=
f'Извините, вы не можете поменять префикс на {prefix} он уже на сервере',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
elif f'{ctx.message.guild.id}' in gold:
with open("prefixes.json", "r") as f:
prefixes = json.load(f)
prefixes[str(ctx.guild.id)] = prefix
with open("prefixes.json", "w") as f:
json.dump(prefixes, f)
await ctx.reply(embed=nextcord.Embed(
title="<a:dot:923208542410919996> Смена префикса",
description=f'Вы изменили префикс сервера на: {prefix}',
color=nextcord.Color.blue(), timestamp=datetime.datetime.now()))
else:
await ctx.reply(embed=nextcord.Embed(
description=
f'Извините эта команда доступна только для тех у кого есть золотой сервер, купить его вы можете на сервере тех.поддержки \"Felter News\"',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
@bot.command()
@commands.cooldown(rate=1, per=10, type=commands.BucketType.user)
async def check(ctx):
gold = goldserver
if f'{ctx.message.author.id}' in blackmember:
await ctx.reply(
"Извините но вы в чёрном списке бота, причину можно узнать у модераторов/сапортов/разработчиков. вот тут "
)
elif f'{ctx.message.guild.id}' in gold:
await ctx.reply(embed=nextcord.Embed(
description=
f'Название сервера: {ctx.guild.name}\nID сервера: {ctx.message.guild.id}\nСостояние премиума: Включён',
color=nextcord.Color.from_rgb(88, 101, 242), timestamp=datetime.datetime.now()))
else:
await ctx.reply(embed=nextcord.Embed(
description=
f'Название сервера: {ctx.guild.name}\nID сервера: {ctx.message.guild.id}\nСостояние премиума: Выключен',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
#@bot.command()
#async def get_links(ctx):
# invites = []
# for guild in bot.guilds:
# for c in guild.text_channels:
# if c.permissions_for(guild.me).create_instant_invite: # make sure the bot can actually create an invite
# invite = await c.create_invite()
# invites.append(invite)
# await ctx.send(invites)
@commands.has_permissions(administrator=True)
@bot.command()
@commands.cooldown(rate=1, per=36000, type=commands.BucketType.user)
async def tick(ctx, *, tick):
channel = bot.get_channel(913521469831663626)
if f'{ctx.message.author.id}' in blackmember:
await ctx.reply(
"Извините но вы в чёрном списке бота, причину можно узнать у модераторов/сапортов/разработчиков. вот тут "
)
elif '@everyone' in tick:
iii = await ctx.reply("Извините но данное содержимое запрещено")
await iii.add_reaction('❌')
elif '@here' in tick:
ii = await ctx.reply("Извините но данное содержимое запрещено")
await ii.add_reaction('❌')
elif len(tick) < 20:
iiiii = await ctx.reply(
"Извините, но обращение к разработчикам должно содержать мин `20` символов"
)
await iiiii.add_reaction('❌')
elif len(tick) > 100:
iiiiii = await ctx.reply(
"Извините, но обращение к разработчикам может содержать макс `100` символов"
)
await iiiiii.add_reaction('❌')
else:
await channel.send(embed=nextcord.Embed(
title=f"Пользователь: {ctx.message.author.id}",
description=
f'Ид Сервера: {ctx.message.guild.id}\nКанал: {ctx.channel.name}\n Пользователь: {ctx.message.author.mention}\nНазвание сервера: {ctx.guild.name}\nТекст: {tick}',
color=nextcord.Color.from_rgb(88, 101, 242), timestamp=datetime.datetime.now()))
file = open(
f"ticket's/{random.randint(81275782135,712654215312323216851)}.txt",
"a")
file.write(
f"---------------\nID Members: {ctx.message.author.id}\nGUILD ID: {ctx.message.guild.id}\nTEXT: {tick}"
)
await ctx.reply(embed=nextcord.Embed(
title=f"{ctx.author}",
description=
f'Ваше обращение было отправлено разработчикам\nВаш текст: `{tick}`',
color=nextcord.Color.from_rgb(88, 101, 242), timestamp=datetime.datetime.now()))
@bot.command()
@commands.cooldown(rate=1, per=3, type=commands.BucketType.user)
async def привет(ctx):
await ctx.reply("Привет, привет)")
@bot.command()
@commands.cooldown(rate=1, per=3, type=commands.BucketType.user)
async def пока(ctx):
await ctx.reply("Пока. Надеемся ты придёшь снова :(")
@bot.command()
@commands.cooldown(rate=1, per=3, type=commands.BucketType.user)
async def asd(ctx):
user = ctx.author.mention
await ctx.reply(user + "\nЧё команды проверяешь?")
class User(commands.Cog):
def __init__(self, bot):
self.bot = bot
@bot.command()
@commands.cooldown(rate=2, per=10, type=commands.BucketType.user)
async def user(ctx,
member: nextcord.Member = None,
guild: nextcord.Guild = None):
await ctx.message.delete()
if member == None:
emb = nextcord.Embed(title="Информация о пользователе",
color=ctx.message.author.color, timestamp=datetime.datetime.now())
emb.add_field(name="Имя:",
value=ctx.message.author.display_name,
inline=False)
emb.add_field(name="Айди пользователя:",
value=ctx.message.author.id,
inline=False)
t = ctx.message.author.status
if t == nextcord.Status.online:
d = " В сети"
t = ctx.message.author.status
if t == nextcord.Status.offline:
d = " Не в сети"
t = ctx.message.author.status
if t == nextcord.Status.idle:
d = " Не активен"
t = ctx.message.author.status
if t == nextcord.Status.dnd:
d = " Не беспокоить"
emb.add_field(name="Активность:", value=d, inline=False)
emb.add_field(name="Статус:",
value=ctx.message.author.activity,
inline=False)
emb.add_field(name="Самая высокая роль на сервере:",
value=f"{ctx.author.top_role.mention}",
inline=False)
emb.set_thumbnail(url=ctx.message.author.avatar)
await ctx.send(embed=emb)
else:
emb = nextcord.Embed(title="Информация о пользователе",
color=member.color, timestamp=datetime.datetime.now())
emb.add_field(name="Имя:", value=member.display_name, inline=False)
emb.add_field(name="Айди пользователя:",
value=member.id,
inline=False)
t = member.status
if t == nextcord.Status.online:
d = " В сети"
t = member.status
if t == nextcord.Status.offline:
d = " Не в сети"
t = member.status
if t == nextcord.Status.idle:
d = " Не активен"
t = member.status
if t == nextcord.Status.dnd:
d = " Не беспокоить"
emb.add_field(name="Активность:", value=d, inline=False)
emb.add_field(name="Статус:", value=member.activity, inline=False)
emb.add_field(name="Самая высокая роль на сервере:",
value=f"{member.top_role.mention}",
inline=False)
await ctx.send(embed=emb)
def setup(bot):
bot.add_cog(User(bot))
#команда сай в эмбед
class Sayem(commands.Cog):
def __init__(self, bot):
self.bot = bot
@bot.command()
@commands.cooldown(rate=1, per=5, type=commands.BucketType.user)
@commands.guild_only()
async def sayem(ctx, *, names):
if f'{ctx.message.author.id}' in blackmember:
await ctx.reply(
"Извините но вы в чёрном списке бота, причину можно узнать у модераторов/сапортов/разработчиков. вот тут "
)
elif f'{ctx.message.guild.id}' in goldserver:
await ctx.reply(embed=nextcord.Embed(
title=f'{ctx.author}',
description=names,
colour=nextcord.Colour.from_rgb(0, 204, 102), timestamp=datetime.datetime.now()))
else:
await ctx.reply(embed=nextcord.Embed(
description=
f'Извините эта команда доступна только для тех у кого есть золотой сервер, купить его вы можете на сервере тех.поддержки \"Felter News\"',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
def setup(bot):
bot.add_cog(Sayem(bot))
class Calc(commands.Cog):
def __init__(self, bot):
self.bot = bot
def __init__(self, bot):
self.bot = bot
@bot.command()
@commands.cooldown(rate=1, per=10, type=commands.BucketType.user)
async def calc(ctx, *, operation: str):
if f'{ctx.message.author.id}' in blackmember:
await ctx.reply(
"Извините но вы в чёрном списке бота, причину можно узнать у модераторов/сапортов/разработчиков. вот тут "
)
else:
async with ctx.typing():
await sleep(1)
await ctx.reply(
embed=nextcord.Embed(title=f"Калькулятор!",
description=f"Ответ: `{eval(operation)}` ",
colour=nextcord.Colour.random(), timestamp=datetime.datetime.now()))
def setup(bot):
bot.add_cog(Calc(bot))
@bot.command()
@commands.cooldown(rate=1, per=5, type=commands.BucketType.user)
@commands.guild_only()
async def per(ctx, *, names):
a = names
await ctx.reply(embed=nextcord.Embed(title=f"Перевернуть текст!",
description=a[::-1],
color=discord.Color.blue(), timestamp=datetime.datetime.now()))
#Команда инфо о сервере
class Info(commands.Cog):
def __init__(self, bot):
self.bot = bot
def __init__(self, bot):
self.bot = bot
@bot.command()
@commands.cooldown(rate=1, per=5, type=commands.BucketType.user)
@commands.guild_only()
async def info(ctx):
role_count = len(ctx.guild.roles)
shard_id = ctx.guild.shard_id
shard = bot.get_shard(shard_id)
shard_ping = round(shard.latency * 1000)
serverinfoEmbed = nextcord.Embed(color=ctx.author.color, timestamp=datetime.datetime.now())
serverinfoEmbed.add_field(
name=" :diamond_shape_with_a_dot_inside: Имя сервера",
value=f"{ctx.guild.name}",
inline=True)
serverinfoEmbed.add_field(name=" :family_mwbb: Всего участников",
value=f"{ctx.guild.member_count}",
inline=True)
serverinfoEmbed.add_field(name=" :scroll: Проверка сервера",
value=f"{ctx.guild.verification_level}",
inline=True)
serverinfoEmbed.add_field(name=" :ledger: ролей на сервере",
value=f"{role_count}",
inline=True)
serverinfoEmbed.add_field(name=" :vibration_mode: Пинг шарда сервера",
value=f"{shard_ping}",
inline=True)
serverinfoEmbed.add_field(
name=" :card_box: Шард",
value=f"Название:{shard_id}one\nID: {shard_id}",
inline=False)
await ctx.send(embed=serverinfoEmbed)
def setup(bot):
bot.add_cog(Info(bot))
#клеар
class Clear(commands.Cog):
def __init__(self, bot):
self.bot = bot
def __init__(self, bot):
self.bot = bot
@bot.command()
@commands.has_permissions(manage_messages=True)
@commands.cooldown(rate=1, per=30, type=commands.BucketType.user)
async def clear(ctx, amount: int):
if amount < 1:
number12 = await ctx.send(embed=await ctx.send(
embed=nextcord.Embed(title=f":no_entry: Erorr ",
description=f' **Число не меньше**: `1` ',
color=nextcord.Color.red(), timestamp=datetime.datetime.now())))
await number12.add_reaction('❌')
elif amount > 100:
number2 = await ctx.send(embed=nextcord.Embed(
title=f":no_entry: Erorr ",
description=f' **Число не больше**: `100` ',
color=nextcord.Color.red(), timestamp=datetime.datetime.now()))
await number2.add_reaction('❌')
else:
await ctx.channel.purge(limit=int(amount + 1))
embed = await ctx.send(embed=nextcord.Embed(
title=f"Очистка чата!",
description=