title: Trying To Call a command from outside an async
body: <p>I have a discord bot (python) that has two functions.</p>
  <p>First, it has commands that are typed in a channel using a hard coded prefix. Secondly, I use threading so I can schedule a specific command at a specific time. This allows both to run simultaneously ( The bot is constantly threading, and since its not in a loop, it is allowing the usage of other commands. The problem is, it's not working as expected, and I'm not sure what I'm doing wrong here. Any assistance would be appreciated.</p>
  <p>I've tried various forms of this command, and the below is one of about 40 different methods I've tried. If you wish, I can indeed post the various methods I've tried thus far, but if you know a way to accomplish this in an easier fashion, it would be appreciated.</p>
  <p>Please note that everything works perfectly except the client.get_command portion. I tested the counter and threading by inputing lines such as &quot;print(f'The current time is {current_time}') So I know everything is operational except that call command.</p>
  <pre><code>import discord
  from discord.ext import commands, tasks
  from dotenv import load_dotenv
  from discord.utils import get
  import os
  import sqlite3
  import datetime
  from sqlite3 import Error
  import time
  import threading
  
  def checkTime():
    threading.Timer(1, checkTime).start()
  
    now = datetime.datetime.now()
  
    current_time = now.strftime(&quot;%H:%M:%S&quot;)
  
    if current_time == '00:00:00':
      print('Its Time. . . ')
      client.get_command('manualcheckdisable')
    
  
  checkTime()
  
  
  @client.command()
  async def manualcheckdisable(ctx):
    # Do things here manually by command, or on schedule at midnight
  </code></pre>