Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Release v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TheKaushikGoswami committed Jan 24, 2022
1 parent a8cf67b commit 3c276a1
Show file tree
Hide file tree
Showing 9 changed files with 89 additions and 251 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
worker: python main.py
48 changes: 46 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
<div align="center">
<img src="./media/banner.png">
<br> <br>

<a href="https://heroku.com/deploy?template=https://github.com/TheKaushikGoswami/lyq-hangout-modmail">
<img src="https://img.shields.io/badge/deploy_to-heroku-997FBC.svg?style=for-the-badge&logo=Heroku">
</a>
<a href="https://discord.gg/EdHv7ZgF3M">
<img src="https://img.shields.io/discord/781477332992786442.svg?label=Discord&logo=Discord&colorB=7289da&style=for-the-badge" alt="Support">
</a>
<img src="https://img.shields.io/github/stars/TheKaushikGoswami/Olympus?style=for-the-badge&logo=github">
<img src="https://img.shields.io/github/last-commit/TheKaushikGoswami/Olympus?style=for-the-badge&color=red">
<img src="https://img.shields.io/github/forks/TheKaushikGoswami/Olympus?style=for-the-badge&logo=github&color=orange">
Expand All @@ -22,10 +29,47 @@
🤝 The major features of the bot are <code>Moderation, Fun, Utility, Games, etc. </code> - based commands. <br>

🍁 The bot is <b> user-friendly </b> too, making comfortable for everyone to get familiar with discord bots and stuff.</p>

> Make Sure to ⭐ the Repo if You liked it -- It Helps!
</div>
<hr>
## 📋 Features

⚡️ Open-Source\
⚡️ Contains Cogs for Easy Management of Code\
⚡ Open to Contributions\
⚡ Direct Deployable to Heroku\
⚡ Actively Maintained\
⚡ Contains Constant New Features of Discord\
⚡️ Easy to modify

## 🚀 Contributing

### Step 1: Clone The Repo 💡

Fork the repository and then clone it locally by doing -

```bash
git clone https://github.com/TheKaushikGoswami/Olympus.git
```

### Step 2: Build Your Code 🔨

Start your magic by modifying the code and making changes of your own. Then push the commit using -

```bash
git add .
git commit -m "<your commit message here>"
git push YOUR_REPO_URL develop
```

### Step 3: Create a new pull request 🔃

After cloning & setting up the local project you can push the changes to your github fork and make a pull request.

## Authors ✒️

- [@TheKaushikGoswami](https://github.com/TheKaushikGoswami)
- [@TheKaushikGoswami](https://github.com/TheKaushikGoswami)
------

Made with :heart: in India
37 changes: 37 additions & 0 deletions cogs/activities.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
from discord import slash_command, Option
from discord.ext import commands
from discord.ext.commands.errors import MissingPermissions, BotMissingPermissions

class Activities(commands.Cog):
def __init__(self, bot):
self.bot = bot

@slash_command()
@commands.has_permissions(start_embedded_activities=True)
async def activity(self, ctx, activity: Option(str, "Choose the Activity You wanna play in the Voice Channel", choices=["Watch Together", "Poker Night", "Chess in the Park", "Betrayal.io", "Fishington.io", "Letter Tile", "Word Snack", "Doodle Crew", "SpellCast", "Awkword", "Checkers in the Park"], required=True)):
"""🚀 Let's Have Some Fun Activities Together"""

try:
activities = {"Watch Together":'youtube', "Poker Night":'poker', "Chess in the Park":'chess', "Betrayal.io":'betrayal', "Fishington.io":'fishington', "Letter Tile":'letter-tile', "Word Snack": 'word-snack', "Doodle Crew":'doodle-crew', "SpellCast":'spellcast', "Awkword":'awkword', "Checkers in the Park":'checkers'}

final_activity = activities.get(activity)
if ctx.author.voice == None:
await ctx.respond(f"**<:Cross:902943066724388926> You Need To Join a Voice Channel in order to Start An Activity!**", ephemeral=True)
else:
link = await self.bot.togetherControl.create_link(ctx.author.voice.channel.id, final_activity)
await ctx.respond(f"Click the Blue Link!\n{link}")
except Exception as e:
print(e)

@activity.error
async def activity_error(self, ctx, error):
if isinstance(error, ConnectionError):
await ctx.respond(f"**<:Cross:902943066724388926> Oops! There was an issue connecting to Discord API!**")
elif isinstance(error, MissingPermissions):
await ctx.respond(f"**<:Cross:902943066724388926> You need `Start Activities` permission to be able to use this command.**")
elif isinstance(error, BotMissingPermissions):
await ctx.respond(f"**<:Cross:902943066724388926> I don't have enough permissions to Launch the Activity**")

def setup(bot):
bot.add_cog(Activities(bot))
print("Activities Cog is Loaded\n------")
2 changes: 0 additions & 2 deletions cogs/api_cmd.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
from datetime import datetime
import discord
from discord.ext import commands
import io
from logging import error
from discord.commands.commands import Option, slash_command
from discord.ext import commands
import aiohttp
from discord.ext.commands.errors import MissingPermissions
import requests

class Api(commands.Cog):
Expand Down
1 change: 0 additions & 1 deletion cogs/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,6 @@ async def snap(self, ctx, member: Option(discord.Member, "Choose the Member", re

# setup COMMAND


def setup(bot):
bot.add_cog(Fun(bot))
print("Fun Cog is Loaded\n------")
239 changes: 0 additions & 239 deletions cogs/lavalink.py

This file was deleted.

6 changes: 3 additions & 3 deletions cogs/mod.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import discord
from discord.commands.commands import Option, message_command
from discord.commands.commands import Option
from discord.commands.errors import ApplicationCommandInvokeError
from discord.errors import Forbidden, HTTPException, NotFound
from discord.errors import NotFound
from discord.ext import commands
from discord.commands import slash_command
from discord.ext.commands.errors import MissingPermissions, NotOwner
from discord.ext.commands.errors import MissingPermissions
import asyncio

class Mod(commands.Cog):
Expand Down
5 changes: 1 addition & 4 deletions cogs/olympus.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import discord, datetime, time
from discord.commands.commands import command, slash_command
from discord.commands.commands import slash_command
from discord.ext import commands
import sys
import datetime
import random
import platform
import time
from discord.ext.commands import bot
import discord.utils

start_time = time.time()
Expand Down
Loading

0 comments on commit 3c276a1

Please sign in to comment.