mirror of
https://github.com/Ryubing/Ryuko.git
synced 2025-05-13 03:00:35 +01:00
46 lines
1.4 KiB
Python
46 lines
1.4 KiB
Python
import discord
|
|
from discord.ext import commands
|
|
from discord.ext.commands import Cog
|
|
|
|
|
|
class Links(Cog):
|
|
"""
|
|
Commands for easily linking to projects.
|
|
"""
|
|
|
|
def __init__(self, bot):
|
|
self.bot = bot
|
|
|
|
@commands.command(hidden=True, aliases=["ryusrc"])
|
|
async def ryubing(self, ctx):
|
|
"""Link to the Pegaswitch repo"""
|
|
await ctx.send("https://github.com/Ryubing/Ryujinx")
|
|
|
|
@commands.command(hidden=True, aliases=["atmos"])
|
|
async def atmosphere(self, ctx):
|
|
"""Link to the Atmosphere repo"""
|
|
await ctx.send("https://github.com/atmosphere-nx/atmosphere")
|
|
|
|
@commands.command(hidden=True, aliases=["xyproblem"])
|
|
async def xy(self, ctx):
|
|
"""Link to the "What is the XY problem?" post from SE"""
|
|
await ctx.send(
|
|
"<https://meta.stackexchange.com/q/66377/285481>\n\n"
|
|
"TL;DR: It's asking about your attempted solution "
|
|
"rather than your actual problem.\n"
|
|
"It's perfectly okay to want to learn about a "
|
|
"solution, but please be clear about your intentions "
|
|
"if you're not actually trying to solve a problem."
|
|
)
|
|
|
|
@commands.command()
|
|
async def source(self, ctx):
|
|
"""Gives link to source code."""
|
|
await ctx.send(
|
|
f"You can find my source at {self.bot.config.source_url}. "
|
|
"Serious PRs and issues welcome!"
|
|
)
|
|
|
|
|
|
async def setup(bot):
|
|
await bot.add_cog(Links(bot))
|