Skip to content

Commit

Permalink
Merge pull request #5 from ArTDsL/dev-1.0
Browse files Browse the repository at this point in the history
Merge dev to main
  • Loading branch information
ArTDsL committed May 20, 2023
2 parents 89e939a + f712957 commit b9ebdaa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: .NET

on:
push:
branches: [ "main" ]
branches: [ "main", "dev-1.0", "dev-arth" ]
pull_request:
branches: [ "main" ]
branches: [ "main", "dev-1.0", "dev-arth" ]

jobs:
build:
Expand Down
10 changes: 9 additions & 1 deletion BitABit/chat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,15 @@ private async Task SendAuth(string pass, string nick) {
private async Task JoinChannel(string channel) {
_userful.SendConsoleLog("Twitch Chat", "JoinChannel()", "Trying to join channel #" + channel, DebugMessageType.INFO);
await TwitchIRCStreamWriter.WriteLineAsync("JOIN #" + channel);
//confirm that no retry is running anymore (yes, it come this far)
return;
}
/// <summary>
/// Send a message on connected chat.
/// </summary>
/// <param name="message">Message that you want to send.</param>
/// <returns></returns>
public async Task SendChatMessage(string message) {
await TwitchIRCStreamWriter.WriteLineAsync("PRIVMSG #" + _channel + " :" + message);
return;
}
/// <summary>
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

---

![Main Branch Workflow](https://github.com/ArTDsL/BitABit-twitch/actions/workflows/dotnet.yml/badge.svg?branch=main) ![.NET CORE 6.0](https://img.shields.io/badge/.NETCore-6.0-blue.svg) ![build - development](https://img.shields.io/badge/status-development-orange.svg) ![Licensed under MIT](https://img.shields.io/badge/License-MIT-lime.svg) ![Open Source](https://img.shields.io/badge/Community-Open%20Source-white.svg) ![Open for Contributions](https://img.shields.io/badge/open%20for-contributions-skyblue.svg) ![C#](https://img.shields.io/badge/C%23-lime.svg)
[![Main Branch Workflow](https://github.com/ArTDsL/BitABit-twitch/actions/workflows/dotnet.yml/badge.svg?branch=main)](https://github.com/ArTDsL/BitABit-twitch) [![.NET CORE 6.0](https://img.shields.io/badge/.NETCore-6.0-blue.svg)](https://dotnet.microsoft.com/pt-br/download/dotnet/6.0) [![build - development](https://img.shields.io/badge/status-development-orange.svg)](!#) [![Licensed under MIT](https://img.shields.io/badge/License-MIT-lime.svg)](LICENSE) [![Open Source](https://img.shields.io/badge/Community-Open%20Source-white.svg)](!#) [![Open for Contributions](https://img.shields.io/badge/open%20for-contributions-skyblue.svg)](!#) [![C#](https://img.shields.io/badge/C%23-lime.svg)](https://learn.microsoft.com/pt-br/dotnet/csharp/)
---

BitABit is a Twitch library made in C# (**.NET 6.0**) for ***Twitch.TV***!
Expand Down Expand Up @@ -101,5 +101,10 @@ var last_message = Chat.GetLastMessage();
//will return as a List<MESSAGE_PARSED>
```

***Send a Normal Message in Chat***
_User must be connected_
```csharp
await Chat.SendChatMessage("Hello World from BitABit!");
```

**more comming soon...**
**more comming soon...**

0 comments on commit b9ebdaa

Please sign in to comment.