Skip to content

Commit 8fa50b3

Browse files
committed
Fixed all encode-decode commands
1 parent 686f79a commit 8fa50b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cogs/converters.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, bot):
1313
async def encode_b64(self, ctx, *, message):
1414
"""Кодирует твоё сообщение в формате BASE64"""
1515

16-
response = requests.get(f'https://some-random-api.ml/base64?encode={message}')
16+
response = requests.get(f'https://some-random-api.com/base64?encode={message}')
1717
json_data = json.loads(response.text)
1818

1919
embed = discord.Embed(color=0xff8080, title='Base64 Encoder', description=json_data['base64'])
@@ -23,7 +23,7 @@ async def encode_b64(self, ctx, *, message):
2323
async def decode_b64(self, ctx, *, message):
2424
"""Декодирует BASE64 текст в нормальный, охуенный текст"""
2525

26-
response = requests.get(f'https://some-random-api.ml/base64?decode={message}')
26+
response = requests.get(f'https://some-random-api.com/base64?decode={message}')
2727
json_data = json.loads(response.text)
2828

2929
embed = discord.Embed(color=0xff8080, title='Base64 Decoder', description=json_data['text'])
@@ -33,7 +33,7 @@ async def decode_b64(self, ctx, *, message):
3333
async def encode_binary(self, ctx, *, message):
3434
"""Кодирует твоё сообщение в бинарный код"""
3535

36-
response = requests.get(f'https://some-random-api.ml/binary?encode={message}')
36+
response = requests.get(f'https://some-random-api.com/binary?encode={message}')
3737
json_data = json.loads(response.text)
3838

3939
embed = discord.Embed(color=0xff8080, title='Binary Encoder', description=json_data['binary'])
@@ -43,7 +43,7 @@ async def encode_binary(self, ctx, *, message):
4343
async def decode_binary(self, ctx, *, message):
4444
"""Декодирует бинарный код в нормальный, охуенный текст"""
4545

46-
response = requests.get(f'https://some-random-api.ml/binary?decode={message}')
46+
response = requests.get(f'https://some-random-api.com/binary?decode={message}')
4747
json_data = json.loads(response.text)
4848

4949
embed = discord.Embed(color=0xff8080, title='Binary Decoder', description=json_data['text'])

0 commit comments

Comments
 (0)