Class CommandFunctions

java.lang.Object
org.prithvidiamond1.CommandFunctions

public class CommandFunctions extends Object
This class holds all the secondary functions required for the bot commands
  • Constructor Details

    • CommandFunctions

      public CommandFunctions()
  • Method Details

    • gayRate

      public static org.testng.internal.collections.Pair<String,Integer> gayRate()
      Method to calculate gay rate and to get url for the respective gayness image
      Returns:
      returns a Pair object containing a String and an Integer: the string contains the url for the gayness image and the integer is the calculated gay rate
    • randomRate

      public static int randomRate()
      Method to calculate a random rate between 1 and 100
      Returns:
      returns a random integer between 1 and 100
    • getYoutubeVideoUrl

      public static String getYoutubeVideoUrl(com.google.api.services.youtube.model.VideoSnippet video)
      Gets the url of a YouTube video snippet VideoSnippet
      Parameters:
      video - the video snippet
      Returns:
      a string containing the url of the YouTube video