Skip to content
This repository has been archived by the owner on Sep 26, 2018. It is now read-only.

Whispers

Leonardo Mariscal edited this page May 2, 2017 · 2 revisions

To add whispers to your bot, you will need the object of the Bot. We will be doing this on the Bot class.

When a whisper is recived this method will be called, so you will overwrite it

	@Override
	public void onWhisper(User user, String message) {
		
	}

You can also send whispers with whisper("") but you will need to be in at least one channel to do this.

	@Override
	public void onCommand(User user, Channel channel, String command) {
		if (command.equals("test")) {
			this.whisper(user, "This is a whisper");
		}
	}

Introduction


Medium Stuff


Extra

  • Automatic Messages
  • Custom Commands
  • Coins System

Clone this wiki locally