title: Name error on last line (it says p not defined)
body: <p>Here is the code</p>
  <pre><code>#
  # start.py
  # @author Merubokkusu
  # @created Fri Jan 04 2019 00:58:07 GMT-0500 (Eastern Standard Time)
  # @copyright 2018 - 2019
  # @license CC BY-NC-ND 3.0 US | https://creativecommons.org/licenses/by-nc-nd/3.0/us/
  # @website https://github.com/Merubokkusu/discord-spam-bots/
  # @email liam@merubokkusu.com
  # @last-modified Tue Mar 05 2019 02:11:47 GMT-0500 (Eastern Standard Time)
  #
  
  import sys
  import subprocess
  import os
  from time import sleep
  from config import *
  
  proxy_number = 0
  spam_text = None
  
  if os.path.exists('tokens.txt'):
      userToken = open(&quot;tokens.txt&quot;).read().splitlines()
      w1 = &quot;EDIT YOUR CONFIG.PY BEFORE USING!\n-=Using tokens.txt=-\n&quot;
  else:
      w1 = &quot;EDIT YOUR CONFIG.PY BEFORE USING!\n&quot;
  
  if os.path.exists('proxies.txt'):
      proxy_list = open(&quot;proxies.txt&quot;).read().splitlines()
  else:
      proxy_list = []
      for token in userToken:
          proxy_list.append('localhost')
  
  if os.path.exists('combolist.txt'):
      emailList = open(&quot;combolist.txt&quot;).read().splitlines()
  if os.path.exists('token_gen.txt'):
      tokenV = open(&quot;token_gen.txt&quot;).read().splitlines()
  
  if len(sys.argv) &lt; 2:
      for char in w1:
          sleep(0.01)
          sys.stdout.write(char)
          sys.stdout.flush()
      sleep(0.5)
      print(&quot;Type one of the following numbers to launch that spammmer&quot;)
      print(&quot;       +========-Server Spammers-=========+&quot;)
      print(&quot;1 : Text Spammer - Write your own text to spam&quot;)
      print(&quot;2 : Image Spammer - Spam random images in a selected folder&quot;)
      print(&quot;3 : Insult Spammer - Picks insults online and spams them&quot;)
      print(&quot;         +========-DM Spammers-=========+      &quot;)
      print(&quot;4 : Text Spammer - Write your own text to spam&quot;)
      print(&quot;5 : Image Spammer - Spam random images in a selected folder&quot;)
      print(&quot;6 : Insult Spammer - Picks insults online and spams them&quot;)
      print(&quot;           +========-Other-=========+&quot;)
      print(&quot;7 : Join Server - Join the server thats written in the config&quot;)
      print(&quot;           +========-Account Creator-=========+&quot;)
      print(&quot;8 : Account creator - Create bulk accounts&quot;)
      print(&quot;9 : Account verifier - Verify accounts&quot;)
  
      in_pick = float(input(&quot;Select a bot: &quot;))
  else:
      in_pick = float(sys.argv[1])
      spam_text = sys.argv[2]
  
  
  if in_pick == 1:
      if os.path.exists('text.txt'):
          for token in userToken:
              p = subprocess.Popen([pythonCommand,'bots/server/discord_text_spam.py',token,'null',proxy_list[proxy_number]])
              proxy_number += 1
              sleep(1)
      else:
          if spam_text == None:
              spam_text = input(&quot;Write spam text : &quot;)
          for token in userToken:
              p = subprocess.Popen([pythonCommand,'bots/server/discord_text_spam.py',token,spam_text,proxy_list[proxy_number]])
              proxy_number += 1
              sleep(1)
  
  if in_pick == 2:
      for token in userToken:
          p = subprocess.Popen([pythonCommand, 'bots/server/discord_image_spam.py', token,proxy_list[proxy_number]])
          proxy_number += 1
  
  if in_pick == 3:
      for token in userToken:
          p = subprocess.Popen([pythonCommand,'bots/server/discord_insult_spam.py', token,proxy_list[proxy_number]])
          proxy_number += 1
  
  #DM Spammers
  if in_pick == 4:
      if os.path.exists('text.txt'):
          if not os.path.exists('dm_spam_text.txt'):
              file = open('dm_spam_text.txt','w')
              file.write('=====Merubokkusu=====\n')#This is written for bug issues :/
              file.close()
          for token in userToken:
              p = subprocess.Popen([pythonCommand,'bots/DM/discord_text_spam_dm.py',token,'null',proxy_list[proxy_number]])
              proxy_number += 1
              sleep(2.5)
      else:
          if not os.path.exists('dm_spam_text.txt'):
              file = open('dm_spam_text.txt','w')
              file.write('=====Merubokkusu=====\n')#This is written for bug issues :/
              file.close()
          if spam_text == None:
              spam_text = input(&quot;Write spam text : &quot;)
          for token in userToken:
              p = subprocess.Popen([pythonCommand,'bots/DM/discord_text_spam_dm.py',token,spam_text,proxy_list[proxy_number]])
              proxy_number += 1
              sleep(2.5)
  
  if in_pick == 5:
      if not os.path.exists('dm_spam_image.txt'):
          file = open('dm_spam_image.txt','w')
          file.write('=====Merubokkusu=====\n')#This is written for bug issues :/
          file.close()
      for token in userToken:
          p = subprocess.Popen([pythonCommand, 'bots/DM/discord_image_spam_dm.py', token,proxy_list[proxy_number]])
          proxy_number += 1
  
  if in_pick == 6:
      if not os.path.exists('dm_spam_insult.txt'):
          file = open('dm_spam_insult.txt','w')
          file.write('=====Merubokkusu=====\n')#This is written for bug issues :/
          file.close()
      for token in userToken:
          p = subprocess.Popen([pythonCommand,'bots/DM/discord_insult_spam_dm.py', token,proxy_list[proxy_number]])
          proxy_number += 1
  
  if in_pick == 7:
      for token in userToken:
          if userToken == False:
              enp = token.split(':')
              p = subprocess.Popen([pythonCommand,'bots/misc/joinServer.py',enp[0],enp[1],inviteLink,useBrowser,proxy_list[proxy_number]])
              proxy_number += 1
              sleep(joinSpeed)
          else:
              p = subprocess.Popen([pythonCommand,'bots/misc/joinServer2.0.py',token,inviteLink,proxy_list[proxy_number]])
              proxy_number += 1
              sleep(joinSpeed)
  
  if in_pick == 8:
      if(captchaAPI == &quot;&quot;):
          print(&quot;This requires an API key from https://2captch9a.com/&quot;)
      else:
          for combo in emailList:
              enp = combo.split(':')
              p = subprocess.Popen([pythonCommand,'bots/misc/account-creator/account_creator.py',enp[0],enp[1],proxy_list[proxy_number]])
              proxy_number += 1
              sleep(joinSpeed)
  if in_pick == 9:
      if(captchaAPI == &quot;&quot;):
          print(&quot;This requires an API key from https://2captcha.com/&quot;)
      else:
          for combo in emailList:
              for tknv in tokenV:
                  enp = combo.split(':')
                  p = subprocess.Popen([pythonCommand,'bots/misc/account-creator/account_verify.py',enp[0],enp[1],proxy_list[proxy_number],tknv])
                  proxy_number += 1
                  sleep(joinSpeed)
  
  p.wait()
  
  </code></pre>
  <p>It just says name error for p.wait that p isn't defined (im a noob)
  I tried everything and it still will not work! I need this for a bot I am developing and I am trying to do this but I have only this issue so help me out :) (BTW I only get the error when I select 8 or 9)</p>