Advertisement
keybored_

Module 1

Nov 20th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 4.60 KB | None | 0 0
  1. Option Strict Off
  2. Module Module1
  3.  
  4.  
  5.     Public answer2 As String
  6.  
  7.  
  8.     Sub Main()
  9.         Console.ForegroundColor = ConsoleColor.Green
  10.         Call trueBeginning()
  11.     End Sub
  12.  
  13.  
  14.     Public Sub trueBeginning()
  15.         'Some name
  16.         'by kennedy eckstrom on 11/6/17 through 11-20-17
  17.         'UwU
  18.         Console.WriteLine("What can I do for you today?")
  19.         Console.WriteLine("(Write 'help' for help!)")
  20.         Call menu()
  21.  
  22.  
  23.     End Sub
  24.  
  25.  
  26.     Public Sub menu()
  27.         Dim answer As String = Console.ReadLine
  28.         Dim answerYeah As String
  29.         If answer = "help" Then
  30.             Call helpo(answer)
  31.         ElseIf answer = "hello" Then
  32.             Call helloYo()
  33.         ElseIf answer = "about" Then
  34.             Console.WriteLine("This is the documentation for this app:")
  35.             Console.WriteLine("Currently, THIS has 13 different main commands, along with 20 independent sub procedures")
  36.             Console.WriteLine("15 If..Then..Else procedures, 5 Select Case procedures, 14 variables, 35 call statements,
  37. and 6 lines of code.
  38. Module 1 has 127 lines. Module 2 has 502 lines, totalling the program to 629 lines.")
  39.             Console.WriteLine("Hopefully, with a little help with Mr. Waite, I'll be able to put the program on the server.")
  40.             Console.WriteLine("Also, with the source code.")
  41.             Call trueBeginning()
  42.         ElseIf answer = "timer" Then
  43.             Call Timer(answer2)
  44.         ElseIf answer = "money" Then
  45.             Call currencyagh(answer2)
  46.         ElseIf answer = "choose" Then
  47.             Call chooseSub()
  48.         ElseIf answer = "exit" Then
  49.             Console.WriteLine("Goodbye!")
  50.             Threading.Thread.Sleep(500)
  51.             Environment.Exit(0)
  52.         ElseIf answer = "textchanger" Then
  53.             Call textChangerSub()
  54.         ElseIf answer = "clear" Then
  55.             Console.WriteLine("Clearing!")
  56.             Threading.Thread.Sleep(1000)
  57.             Console.Clear()
  58.             Call trueBeginning()
  59.         ElseIf answer = "dice" Then
  60.             Call diceRoll()
  61.         ElseIf answer = "8ball" Then
  62.             Call eightBall()
  63.         ElseIf answer = "random number" Then
  64.             Call randNum()
  65.         ElseIf answer = "music" Then
  66.             Call PlayBackgroundSoundFile()
  67.         ElseIf answer = "music stop" Then
  68.             My.Computer.Audio.Stop()
  69.             Call trueBeginning()
  70.         ElseIf answer = "randnum" Then
  71.             Call randNum()
  72.         ElseIf answer = "admin" Then
  73.             Console.WriteLine("Password?")
  74.             answerYeah = Console.ReadLine
  75.             If answerYeah = "axolotl567" Then
  76.  
  77.                 Call GetIPAddress()
  78.             Else
  79.                 Console.WriteLine("Incorect.")
  80.                 Call trueBeginning()
  81.             End If
  82.         ElseIf answer = "search" Then
  83.             Call searchYT()
  84.         Else
  85.             Console.Beep()
  86.             Console.WriteLine("Whoopsies!")
  87.             Console.WriteLine("Please enter a command.")
  88.             Console.WriteLine("If you do not know the commands, please use 'help' for a guide.)")
  89.             Call trueBeginning()
  90.         End If
  91.  
  92.     End Sub
  93.  
  94.  
  95.  
  96.     Public Sub helpo(answer As String)
  97.         Console.WriteLine("Here's a list of commands!
  98.    hello - Gives you a small bio about me!
  99.    about - Gives you a more in-depth bio about me!
  100.    clear - Clears the screen!
  101.    timer - Gives you a timer! Times in minutes and seconds!
  102.    money - Converts currency! Currently only USD to Euro, Japan Yen, and Great Britain Pound.  
  103.    music - Gives you a list of 20 songs to pick from (use 'music stop' at any time to stop music)
  104.    choose - Randomly picks between 2 or more choices!
  105.    randnum - Chooses a random number between 1 and a number of your choice!
  106.    8ball - Ask a question, get a prediction!
  107.    dice - Rolls dice for you!
  108.    search - Searches youtube for a video, and opens it in your default broswer!
  109.    exit - Exits program")
  110.  
  111.         Call trueBeginning()
  112.     End Sub
  113.  
  114.     Public Sub helloYo()
  115.         Console.WriteLine("I'm Anne Droid! I'm an application that can do a lot! Just check out my help command!")
  116.         Console.WriteLine("I was made by the programmer Kennedy, otherwise known as 'Kebby' or 'Keb',")
  117.         Console.WriteLine("in order to help with stats And conversions. I have so many featues! Check them all out by trying 'help'!")
  118.         Console.WriteLine("Also, check out documentation by writing 'about'!")
  119.  
  120.         Call trueBeginning()
  121.     End Sub
  122.  
  123.     Private Sub trueBeginning(answer2 As String)
  124.         Throw New NotImplementedException()
  125.     End Sub
  126. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement