-
Notifications
You must be signed in to change notification settings - Fork 0
class Weather
www/php-ircbot/Classes/Command/Weather.php
arguments[0] == Channel or User to say message to. arguments[1] == Message text.
IRCBot\Command
- Matej Velikonja matej@velikonja.si
No public properties found
No constants found
__construct() | command() | executeCommand() | getNick() | setIRCBot() | setIRCConnection() |
Contains all given arguments.
protected $arguments : array
- Inherited from \Library\IRC\Command\Base
Array
Reference to the IRC Bot
protected $bot : \Lirary\IRC\Bot
- Inherited from \Library\IRC\Command\Base
Array
Reference to the IRC Connection.
protected $connection : \Library\IRC\Connection
- Inherited from \Library\IRC\Command\Base
Array
Original request from server
private $data : string
- Inherited from \Library\IRC\Command\Base
Array
The command's help text.
You have to define this in the command.
protected$help : string
Array
API for getting location from IP
private $ipUri : string
Array
Location URI API call
private $locationUri : string
Array
The number of arguments the command needs.
You have to define this in the command.
protected$numberOfArguments : int
Array
Contains channel or user name
protected $source : string
- Inherited from \Library\IRC\Command\Base
Array
Weather URI API call
private $weatherUri : string
Array
Yahoo API key.
private $yahooKey : string
Array
- Inherited from \Command\Weather
public __construct(string $yahooKey) : mixed
Sends the arguments to the channel. Weather for location that user requested.
This method is called if the command get's executed.
- Inherited from \Command\Weather
public command() : mixed
Executes the command.
- Inherited from \Library\IRC\Command\Base
public executeCommand(array $arguments, string $source, string $data) : mixed
Fetches data from $uri
- Inherited from \Library\IRC\Command\Base
protected fetch(string $uri) : string
- Inherited from \Library\IRC\Command\Base
private getHelp() : mixed
Returns WOEid of $location
- Inherited from \Command\Weather
protected getLocation(string $location) : int|null
Returns location name of $ip.
- Inherited from \Command\Weather
protected getLocationNameFromIp( $ip) : string
Returns a user's nickname
- Inherited from \Library\IRC\Command\Base
public getNick() : string
Returns requesting user IP
- Inherited from \Library\IRC\Command\Base
protected getUserIp() : string
- Inherited from \Command\Weather
protected getWeather(mixed $woeid) : mixed
Sends PRIVMSG to source with $msg
- Inherited from \Library\IRC\Command\Base
protected say(string $msg) : mixed
-
version:
2.0
Set's the IRC Bot, so we can use it to send data to the server.
- Inherited from \Library\IRC\Command\Base
public setIRCBot(\Library\IRCBot $ircBot) : mixed
Set's the IRC Connection, so we can use it to send data to the server.
- Inherited from \Library\IRC\Command\Base
public setIRCConnection(\Library\IRC\Connection $ircConnection) : mixed
\ » Classes » Weather
Documentation generated on April 26th, 2020 at 15:54.
Powered by phpDocumentor with template GitHub-wiki.