Compare commits
10 Commits
87465aface
...
11f75e97cd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
11f75e97cd | ||
|
|
a92b066ecb | ||
|
|
4640d389a4 | ||
|
|
2c625c0c6c | ||
|
|
bc3f890825 | ||
|
|
8d46673092 | ||
|
|
def16f0760 | ||
|
|
28893789bb | ||
|
|
8b95218f84 | ||
|
|
1d5a126d44 |
@@ -18,7 +18,7 @@ jobs:
|
|||||||
port: 22
|
port: 22
|
||||||
local_path: ./*
|
local_path: ./*
|
||||||
remote_path: /home/admin/${{ env.REPO_NAME }}/
|
remote_path: /home/admin/${{ env.REPO_NAME }}/
|
||||||
ssh_private_key: ${{ env.SSH_PRIVATE_KEY }}
|
password: ${{ secrets.SSH_PASS }}
|
||||||
|
|
||||||
restart-bot:
|
restart-bot:
|
||||||
needs: [deploy-via-sftp]
|
needs: [deploy-via-sftp]
|
||||||
@@ -30,4 +30,4 @@ jobs:
|
|||||||
command: sudo systemctl start ${{ env.REPO_NAME }}-watcher.service &
|
command: sudo systemctl start ${{ env.REPO_NAME }}-watcher.service &
|
||||||
host: 172.17.0.1
|
host: 172.17.0.1
|
||||||
user: root
|
user: root
|
||||||
pass: ${{ secrets.SSH_PRIVATE_KEY }}
|
pass: ${{ secrets.SSH_PASS }}
|
||||||
6
main.py
6
main.py
@@ -7,6 +7,7 @@ import time
|
|||||||
|
|
||||||
|
|
||||||
intents = discord.Intents.all()
|
intents = discord.Intents.all()
|
||||||
|
allowed_mentions = discord.AllowedMentions(everyone = True)
|
||||||
# intents.members = True
|
# intents.members = True
|
||||||
|
|
||||||
bot = commands.Bot(intents=intents)
|
bot = commands.Bot(intents=intents)
|
||||||
@@ -151,7 +152,6 @@ async def mensaje_jueves():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
await send_log(f"rip. Error: ```{e}```")
|
await send_log(f"rip. Error: ```{e}```")
|
||||||
|
|
||||||
|
|
||||||
@tasks.loop(hours = 1)
|
@tasks.loop(hours = 1)
|
||||||
async def horario_enviar():
|
async def horario_enviar():
|
||||||
try:
|
try:
|
||||||
@@ -213,12 +213,14 @@ async def rima(ctx, message):
|
|||||||
elif message.content.lower().endswith("jueves") and message.author != bot.user:
|
elif message.content.lower().endswith("jueves") and message.author != bot.user:
|
||||||
await ctx.reply(random.choices(["https://media.tenor.com/riA830QHvC8AAAAC/feliz-jueves-asuka.gif","https://media.tenor.com/L2-mDROrwgwAAAAd/racism.gif"], k=1, weights=[9,1])[0], mention_author=True)
|
await ctx.reply(random.choices(["https://media.tenor.com/riA830QHvC8AAAAC/feliz-jueves-asuka.gif","https://media.tenor.com/L2-mDROrwgwAAAAd/racism.gif"], k=1, weights=[9,1])[0], mention_author=True)
|
||||||
|
|
||||||
elif message.content.lower().endswith("jueves ** **") and message.author == 518377522485002241:
|
elif message.content.lower().endswith("jueves ** **") and message.author.id == 518377522485002241:
|
||||||
await ctx.reply("https://media.tenor.com/L2-mDROrwgwAAAAd/racism.gif", mention_author=True)
|
await ctx.reply("https://media.tenor.com/L2-mDROrwgwAAAAd/racism.gif", mention_author=True)
|
||||||
|
|
||||||
elif any(i in message.content for i in ("33", "treinta y tres")) and message.author != bot.user:
|
elif any(i in message.content for i in ("33", "treinta y tres")) and message.author != bot.user:
|
||||||
await ctx.reply("https://tenor.com/view/fernando-alonso-live-fernando-reaction-alonso-fernando-live-reaction-gif-1814768510923235803", delete_after=5)
|
await ctx.reply("https://tenor.com/view/fernando-alonso-live-fernando-reaction-alonso-fernando-live-reaction-gif-1814768510923235803", delete_after=5)
|
||||||
|
|
||||||
|
elif message.content.lower() == "!evau" and message.author.id == 518377522485002241:
|
||||||
|
await mandar_ebau()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
await send_log(f"rip. Error: ```{e}```")
|
await send_log(f"rip. Error: ```{e}```")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user