Skip to content

IRC Info command #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions tux/cogs/utility/info.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from os import name
import discord
from discord import app_commands
from discord.ext import commands
Expand Down Expand Up @@ -108,18 +107,16 @@ async def member(self, interaction: discord.Interaction, member: discord.Member)
@group.command(name="irc", description="Shows information about the IRC server")
async def irc(self, interaction: discord.Interaction) -> None:
embed = self.create_embed(
"IRC Server"
"We have an IRC Server! ",
"IRC Server" "We have an IRC Server! ",
)
embed.set_author(name="Info", icon_url="https://cdn3.emoji.gg/emojis/3228-info.png")
embed.add_field(name="Information", value="irc.atl.tools, 6697, TLS/SSL, Channel: #general")
embed.add_field(
name="Information", value="irc.atl.tools, 6697, TLS/SSL, Channel: #general"
)
embed.add_field(
name="NickServ Connection Instructions", value="""
name="NickServ Connection Instructions",
value="""
1. Connect to IRC Server
2. type /msg NickServ register followed by a password and email address.
3. Talk!"""
3. Talk!""",
)
embed.set_footer(
text=f"Requested by {interaction.user.display_name}",
Expand All @@ -130,6 +127,5 @@ async def irc(self, interaction: discord.Interaction) -> None:
await interaction.response.send_message(embed=embed)



async def setup(bot: commands.Bot) -> None:
await bot.add_cog(Info(bot))
Loading