imageBotDjango/idescriptor/management/commands/post.py

14 lines
288 B
Python
Raw Permalink Normal View History

2024-10-21 21:25:36 +00:00
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())