How to use ircv3 - 6 common examples

To help you get started, we’ve selected a few ircv3 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github d-fischer / twitch / packages / twitch-chat-client / src / Capabilities / TwitchCommandsCapability / MessageTypes / HostTarget.ts View on Github external
import { Message, MessageParam, MessageParamDefinition, MessageType } from 'ircv3';

// this command has no *useful* parameters, all information is in tags
/** @private */
@MessageType('HOSTTARGET')
export default class HostTarget extends Message {
	@MessageParamDefinition({
		type: 'channel'
	})
	channel!: MessageParam;

	@MessageParamDefinition({
		trailing: true
	})
	targetAndViewers!: MessageParam;
}
github d-fischer / twitch / packages / twitch-chat-client / src / Capabilities / TwitchCommandsCapability / MessageTypes / Whisper.ts View on Github external
import { Message, MessageParam, MessageParamDefinition, MessageType } from 'ircv3';
import ChatUser from '../../../ChatUser';
import { parseEmotes } from '../../../Toolkit/ChatTools';

/** @private */
@MessageType('WHISPER')
export default class Whisper extends Message {
	@MessageParamDefinition()
	target!: MessageParam;

	@MessageParamDefinition({
		trailing: true,
		optional: true
	})
	message!: MessageParam;

	get userInfo() {
		return new ChatUser(this._prefix!.nick, this._tags);
	}

	get emoteOffsets() {
		if (!this._tags) {
github d-fischer / twitch / packages / twitch-chat-client / src / Capabilities / TwitchCommandsCapability / MessageTypes / UserNotice.ts View on Github external
import { Message, MessageParam, MessageParamDefinition, MessageType } from 'ircv3';
import ChatUser from '../../../ChatUser';
import { parseEmotes } from '../../../Toolkit/ChatTools';

/** @private */
@MessageType('USERNOTICE')
export default class UserNotice extends Message {
	@MessageParamDefinition({
		type: 'channel'
	})
	channel!: MessageParam;

	@MessageParamDefinition({
		trailing: true,
		optional: true
	})
	message!: MessageParam;

	get userInfo() {
		return new ChatUser(this._prefix!.nick, this._tags);
	}
github d-fischer / twitch / packages / twitch-chat-client / src / Capabilities / TwitchCommandsCapability / MessageTypes / RoomState.ts View on Github external
import { Message, MessageParam, MessageParamDefinition, MessageType } from 'ircv3';

/** @private */
@MessageType('ROOMSTATE')
export default class RoomState extends Message {
	@MessageParamDefinition({
		type: 'channel'
	})
	channel!: MessageParam;
}
github d-fischer / twitch / packages / twitch-chat-client / src / Capabilities / TwitchCommandsCapability / MessageTypes / ClearChat.ts View on Github external
import { Message, MessageParam, MessageParamDefinition, MessageType } from 'ircv3';

/** @private */
@MessageType('CLEARCHAT')
export default class ClearChat extends Message {
	@MessageParamDefinition({
		type: 'channel'
	})
	channel!: MessageParam;

	@MessageParamDefinition({
		trailing: true,
		optional: true
	})
	user!: MessageParam;
}
github d-fischer / twitch / packages / twitch-chat-client / src / Capabilities / TwitchCommandsCapability / MessageTypes / UserState.ts View on Github external
import { Message, MessageParam, MessageParamDefinition, MessageType } from 'ircv3';

/** @private */
@MessageType('USERSTATE')
export default class UserState extends Message {
	@MessageParamDefinition({
		type: 'channel'
	})
	type!: MessageParam;
}

ircv3

Connect to and interact with IRC servers. IRCv3 compatible.

MIT
Latest version published 10 months ago

Package Health Score

53 / 100
Full package analysis

Popular ircv3 functions

Similar packages