Commit ee1f8a54 authored by Jeremy Pallats's avatar Jeremy Pallats 💬
Browse files

Stub Donate.

parent 5ed9f40d
Loading
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -754,6 +754,17 @@ class Dist(Action):
            await self.bot.send_message(self.msg.channel, msg)


class Donate(Action):
    """
    Information on how to donate. Command will not actually process anything here.
    """
    async def execute(self):
        response = """__Donation Information__

Information on how to support the project goes here."""
        await self.bot.send_message(self.msg.channel, response)


class Drop(Action):
    """
    Handle the logic of dropping a fort at a target.
+13 −0
Original line number Diff line number Diff line
@@ -214,6 +214,19 @@ def subs_dist(subs, prefix):
    sub.add_argument('system', nargs='+', help='The systems in question.')


@register_parser
def subs_donate(subs, prefix):
    """ Subcommand parsing for drop """
    desc = """Information on how to donate to the project.

**{prefix}donate**
        Information on how to donate funds to support development and server costs.
    """.format(prefix=prefix)
    sub = subs.add_parser(prefix + 'donate', description=desc, formatter_class=RawHelp)
    sub.set_defaults(cmd='Donate')
    CMD_MAP['Donate'] = 'donate'


@register_parser
def subs_drop(subs, prefix):
    """ Subcommand parsing for drop """