Package org.prithvidiamond1
Class CommandFunctions
java.lang.Object
org.prithvidiamond1.CommandFunctions
This class holds all the secondary functions required for the bot commands
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongayRate()
Method to calculate gay rate and to get url for the respective gayness imagestatic String
getYoutubeVideoUrl
(com.google.api.services.youtube.model.VideoSnippet video) Gets the url of a YouTube video snippetVideoSnippet
static int
Method to calculate a random rate between 1 and 100
-
Constructor Details
-
CommandFunctions
public CommandFunctions()
-
-
Method Details
-
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
Gets the url of a YouTube video snippetVideoSnippet
- Parameters:
video
- the video snippet- Returns:
- a string containing the url of the YouTube video
-