text: from random import randint
  from time import sleep
  
  from beastx import CMD_HELP
  from beastx.events import register
  
  
  @register(outgoing=True, pattern="^.random")
  async def randomise(items):
      """For .random command, get a random item from the list of items."""
      if not items.text[0].isalpha() and items.text[0] not in ("/", "#", "@", "!"):
          itemo = (items.text[8:]).split()
          index = randint(1, len(itemo) - 1)
          await items.edit(
              "**Query: **\n`"
              + items.text[8:]
              + "`\n**Output: **\n`"
              + itemo[index]
              + "`"
          )
  
  
  @register(outgoing=True, pattern="^.sleep( [0-9]+)?$")
  async def sleepybot(time):
      """For .sleep command, let the virtualuserbot snooze for a few second."""
      message = time.text
      if not message[0].isalpha() and message[0] not in ("/", "#", "@", "!"):
          if " " not in time.pattern_match.group(1):
              await time.reply("Syntax: `.sleep [seconds]`")
          else:
              counter = int(time.pattern_match.group(1))
              await time.edit("`I am sulking and snoozing....`")
              sleep(2)
              if LOGGER:
                  await time.client.send_message(
                      LOGGER_GROUP,
                      "You put the bot to sleep for " + str(counter) + " seconds",
                  )
              sleep(counter)
  
  
  CMD_HELP.update(
      {
          "misc": "**Misc**\
  \n\n**Syntax : **`.random <mention text or numbers>`\
  \n**Usage :** This plugin picks random text or number from given texts or numbers.\
  \n\n**Syntax : **`.sleep <time in seconds>`\
  \n**Usage :** Bot sleeps for given time."
      }
  )
  