Skip to content

Commit 315658a

Browse files
committed
made some adjustments
[ + ] Addd FUNDING.yml [ + ] Added test build workflow [ # ] Made InteractionsClient.InteractionCooldown GET only since its not supported yet
1 parent c3369de commit 315658a

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: fabiothefox
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Dev Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- dev
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: '7.x'
20+
21+
- name: Restore dependencies
22+
run: dotnet restore
23+
24+
- name: Build and test
25+
run: dotnet build --configuration Release && dotnet test --no-build --verbosity normal

Amino.NET.Interactions/InteractionsClient.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public enum LogLevels
2828
}
2929

3030
private Amino.Client AminoClient;
31-
public int InteractionCooldown = 2000;
31+
public int InteractionCooldown { get; } = 2000;
3232
public string InteractionPrefix = "/";
3333

3434
public bool IgnoreSelf = true;
@@ -59,7 +59,6 @@ public InteractionsClient(Amino.Client client)
5959

6060
private void HandleMessageSocket(Amino.Objects.Message message)
6161
{
62-
Console.WriteLine(message.content);
6362
if (message.content.StartsWith(InteractionPrefix))
6463
{
6564
if (InteractionModules.ContainsKey(message.content.Substring(InteractionPrefix.Length).Split(" ")[0]))

0 commit comments

Comments
 (0)