Advertisement
Guest User

Welcome upon join event

a guest
Jun 12th, 2020
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2. using twitchbot;
  3.  
  4. namespace Plugins
  5. {
  6.     [ApiVersion(0, 1)]
  7.     public class Plugin : TwitchBot
  8.     {
  9.         public override Version Version => new Version(0, 1);
  10.         public override string Name => "Example Plugin";
  11.         public override void Initialize()
  12.         {
  13.             ChatRoom.UserJoinEvent += OnJoin;
  14.         }
  15.  
  16.         private void OnJoin(object sender, ChatRoom.JoinEventArgs e)
  17.         {
  18.             ChatRoom.Instance.SendMessage(ChatRoom.Send + ChatRoom.Instance.channel + " :Welcome " + e.UserName);
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement