This repository has been archived by the owner on Dec 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAnnouncements.py
147 lines (132 loc) · 8.88 KB
/
Announcements.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
import discord
from discord.ext.commands import errors
import Util
import random
from discord.ext import commands
class Announcements(commands.Cog):
"""
Contains commands for making annoucements for BlueLearn Originals
"""
def __init__(self, client):
self.client = client
self.AnnouncementChannelID = 835775311416786945
async def AnnouncementEmbed(self, Podcaster, PodcastName, PodcastTopic, PodcastPoster = None):
podcastEmbed = discord.Embed(title= "{} : {} by {} is starting soon!".format(PodcastName, PodcastTopic, Podcaster),
description= "Join the <#835775088539336764> Stage channel!\nㅤ".format(PodcastTopic),
colour=random.randint(0, 0xffffff))
podcastEmbed.add_field(name="Want to Get Notified for Podcasts?", value="Get the Podcast Ping roles for your favourite podcasts (or all of them cuz why not? <:Smirks:757906751063588912>) from <#835775268844339210> or [click here](https://discord.com/channels/740589508365385839/835775268844339210/835813552190783548)")
if PodcastPoster != None:
podcastEmbed.set_image(url=PodcastPoster)
else:
podcastEmbed.set_image(url="https://res.cloudinary.com/zeusabhijeet/image/upload/v1625818327/SleepBot/Announcements/Bluelearn_Originals_Poster.png")
return podcastEmbed
@commands.command(name = "announceYashvi")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceYashvi(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Yashvi", "Book Archives", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&829296249874022450> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceYashvi.error
async def YashviError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceHritik")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceHritik(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Hritik Rahul and Solum Moss", "The Losers Talk", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&835804077404192779> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceHritik.error
async def HritikError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceAseem")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceAseem(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Aseem Srivastava", "Eatingbea", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&835804084963508234> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceAseem.error
async def AseemError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceSia")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceSia(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Sia Mulge", "Those Youth Terms", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&835804110786658305> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceSia.error
async def SiaError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceVanshaj")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceVanshaj(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Vanshaj", "Internet Psychology 101", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&835804105275736134> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceVanshaj.error
async def VanshajError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceSid")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceSid(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Sid Park", "Startups ki Saanp Seedhi", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&835804112863494186> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceSid.error
async def SidError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceViraj")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceViraj(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Viraj Raundal", "Observe: Tech and all the stuff around it!", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&829296550601031710> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceViraj.error
async def VirajError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceHarish")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceHarish(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Curious Harish", "Creator Club", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&829295982453194772> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceHarish.error
async def HarishError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceSakshi")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceSakshi(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Sakshi Soni", "The Quintessential Queens", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&838413457623744542> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceSakshi.error
async def SakshiError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceYogen")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceYogen(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Yogen", "Influenced Consumer", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&838413807435907083> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceYogen.error
async def YogenError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceGargi")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceGargi(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Gargi", "The Garspective Show : Understanding Within and Beyond", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&838414123514986556> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceGargi.error
async def GargiError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
@commands.command(name = "announceStress")
@commands.has_any_role(742028591281340557, 754760818289279057, 835850188827394058)
async def announceStress(self, ctx, *, PodcastTopic):
PodcastEmbed = await self.AnnouncementEmbed("Deshna and Tanisha", "Successfully Stressed", PodcastTopic)
#await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&782495306021470238>')
await self.client.get_channel(self.AnnouncementChannelID).send(f'<@&780394943302074388> <@&838414286609973248> https://discord.gg/jAjNZ9TMK7', embed = PodcastEmbed)
@announceStress.error
async def StressError(self, ctx, error):
await Util.ErrorHandler(ctx, error)
def setup(client):
client.add_cog(Announcements(client))