feat: add posting capabilities
This commit is contained in:
13
idescriptor/management/commands/post.py
Normal file
13
idescriptor/management/commands/post.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from django.core.management import BaseCommand
|
||||
from idescriptor.bot import post
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = 'Post an image'
|
||||
|
||||
def add_arguments(self, parser):
|
||||
# Named (optional) arguments
|
||||
pass
|
||||
|
||||
def handle(self, *args, **options):
|
||||
print(post())
|
Reference in New Issue
Block a user