Skip to content

Commit

Permalink
[V3] Updated some informations + added main info.json
Browse files Browse the repository at this point in the history
  • Loading branch information
laggron42 committed May 25, 2018
1 parent c4624e0 commit bfaa27a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 20 deletions.
34 changes: 25 additions & 9 deletions info_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,34 @@
from roleinvite import RoleInvite
from say import Say

class Default:
"""
This contains the documentation of the repository
"""

__author__ = "El Laggron"
__info__ = {
"description": (
"A buch of utility and quality cogs "
"that brings unique features for your server. "
"Made by Laggron."
),
"install_msg": (
"Thanks for installing the repository! Please check the wiki "
"for all informations about the cogs.\n"
"https://github.com/retke/Laggrons-Dumb-Cogs/wiki\n"
"Join the official discord server for questions or suggestions.\n"
"https://discord.gg/WsTGeQ"
),
"short": "Utility cogs for your server."
}

def get_cog_data(instance):

data = {
"author": instance.__author__,
"bot_version": instance.__info__["bot_version"],
"description": instance.__info__["description"],
"hidden": instance.__info__["hidden"],
"install_msg": instance.__info__["install_msg"],
"required_cogs": instance.__info__["required_cogs"],
"requirements": instance.__info__["requirements"],
"short": instance.__info__["short"],
"tags": instance.__info__["tags"],
"author": instance.__author__
}
data.update(instance.__info__)
return data


Expand Down Expand Up @@ -68,4 +83,5 @@ def commit(token, build):
create_info_json(InstantCommands, "instantcmd")
create_info_json(RoleInvite, "roleinvite")
create_info_json(Say, "say")
create_info_json(Default, ".") # repo info.json
commit(token=sys.argv[1], build=sys.argv[2])
5 changes: 2 additions & 3 deletions instantcmd/instantcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ def __init__(self, bot):
"description": "Command and listener maker from a code snippet through Discord",
"hidden": False,
"install_msg": (
"Thanks for installing the cog. Please check the wiki "
"Thanks for installing roleinvite. Please check the wiki "
"for all informations about the cog.\n"
"https://github.com/retke/Laggrons-Dumb-Cogs/wiki\n"
"Join the discord server for questions or suggestions."
"https://discord.gg/WsTGeQ"
"Everything you need to know about setting up the cog is here."
),
"required_cogs": [],
"requirements": [],
Expand Down
8 changes: 3 additions & 5 deletions roleinvite/roleinvite.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import discord
import asyncio
import json
import discord

from discord.ext import commands
from discord.utils import get
Expand Down Expand Up @@ -40,11 +39,10 @@ def __init__(self, bot):
),
"hidden": False,
"install_msg": (
"Thanks for installing the cog. Please check the wiki "
"Thanks for installing roleinvite. Please check the wiki "
"for all informations about the cog.\n"
"https://github.com/retke/Laggrons-Dumb-Cogs/wiki\n"
"Join the discord server for questions or suggestions."
"https://discord.gg/WsTGeQ"
"Everything you need to know about setting up the cog is here."
),
"required_cogs": [],
"requirements": [],
Expand Down
5 changes: 2 additions & 3 deletions say/say.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ def __init__(self, bot):
),
"hidden": False,
"install_msg": (
"Thanks for installing the cog. Please check the wiki "
"Thanks for installing roleinvite. Please check the wiki "
"for all informations about the cog.\n"
"https://github.com/retke/Laggrons-Dumb-Cogs/wiki\n"
"Join the discord server for questions or suggestions."
"https://discord.gg/WsTGeQ"
"Everything you need to know about setting up the cog is here."
),
"required_cogs": [],
"requirements": [],
Expand Down

0 comments on commit bfaa27a

Please sign in to comment.