~riderius/riderius-cogs

f313dd98d4b3ee064a68f7e19ef0166b4f79e156 — riderius 2 months ago 62998d4
newcog.sh: indent fixs

Signed-off-by: riderius <riderius.help@gmail.com>
1 files changed, 9 insertions(+), 9 deletions(-)

M newcog.sh
M newcog.sh => newcog.sh +9 -9
@@ 20,11 20,11 @@ echo "    bot.add_cog($NAME(bot))" >> $NAME/__init__.py

#info.json
echo "{" >> $NAME/info.json
echo "    \"author\" : "[\"riderius\"]", " >> $NAME/info.json
echo "    \"install_msg\" : \"\", " >> $NAME/info.json
echo "    \"name\" : \"$NAME\", " >> $NAME/info.json
echo "    \"short\" : \"\", " >> $NAME/info.json
echo "    \"description\" : \"\", " >> $NAME/info.json
echo "   \"author\" : "[\"riderius\"]", " >> $NAME/info.json
echo "   \"install_msg\" : \"\", " >> $NAME/info.json
echo "   \"name\" : \"$NAME\", " >> $NAME/info.json
echo "   \"short\" : \"\", " >> $NAME/info.json
echo "   \"description\" : \"\", " >> $NAME/info.json
echo "}" >> $NAME/info.json
sed 's/[ \t]\+$//' $NAME/info.json > /tmp/info.json.new
cat /tmp/info.json.new > $NAME/info.json


@@ 36,8 36,8 @@ echo "" >> $NAME/$LOWERCASE_NAME.py
echo "class $NAME(commands.Cog):" >> $NAME/$LOWERCASE_NAME.py
echo "" >> $NAME/$LOWERCASE_NAME.py
echo "    def __init__(self, bot):" >> $NAME/$LOWERCASE_NAME.py
echo "      self.bot = bot" >> $NAME/$LOWERCASE_NAME.py
echo "        self.bot = bot" >> $NAME/$LOWERCASE_NAME.py
echo "" >> $NAME/$LOWERCASE_NAME.py
echo "  @commands.command()" >> $NAME/$LOWERCASE_NAME.py
echo "  async def $LOWERCASE_NAME(self, ctx):" >> $NAME/$LOWERCASE_NAME.py
echo "      \"\"\"\"\"\"" >> $NAME/$LOWERCASE_NAME.py
echo "    @commands.command()" >> $NAME/$LOWERCASE_NAME.py
echo "    async def $LOWERCASE_NAME(self, ctx):" >> $NAME/$LOWERCASE_NAME.py
echo "        \"\"\"\"\"\"" >> $NAME/$LOWERCASE_NAME.py