Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
323 commits
Select commit Hold shift + click to select a range
e669234
Added db creation factory for migration creation
sphexator May 1, 2021
faa59eb
Added migrations
sphexator May 1, 2021
88770e1
Updated packages
sphexator May 1, 2021
fc8dace
Moved logging stuff from Startup.cs to Program.cs
sphexator May 1, 2021
a2c1754
Made QuartzExtension UseQuartz use async instead of bad practice vers…
sphexator May 1, 2021
c4cd940
Removed uneeded check on advert controller
sphexator May 1, 2021
eee2ca7
Changed command context to use guild specific context and changed com…
sphexator May 1, 2021
91bd10d
Slight adjustment in prefix provider
sphexator May 1, 2021
27dc49c
Minor change in RequirePremium.cs
sphexator May 1, 2021
a9161c2
Use snowflake instead of ulong in RequiredChannel.cs and refactor res…
sphexator May 1, 2021
3fe6bc5
Added missing type declaration for ilogger
sphexator May 1, 2021
6056f8e
Change member entity to author in ShipGameService.cs
sphexator May 1, 2021
2bd1661
Added missing fonts and image templates
sphexator May 2, 2021
406a663
Fixed image path to templates
sphexator May 2, 2021
ea9bb60
Fixed command module, context and bot base
sphexator May 2, 2021
0d75508
Moved command formating to extensions and renamed ContextExtensions.c…
sphexator May 2, 2021
ede4a6e
Use extensions in commands controller
sphexator May 2, 2021
94312fd
Remove raw values and use snowflakes instead
sphexator May 2, 2021
d41b024
Adjusted for new ways to do pages in commands
sphexator May 2, 2021
f52b909
Changed how to receive channels (old way removed)
sphexator May 6, 2021
af4ba90
Added base commands
sphexator May 6, 2021
341f6b9
Updated libraries
sphexator May 6, 2021
14bfed6
Minor change in paginationbuilder, no need to recreate maxPage when i…
sphexator May 6, 2021
1b484ca
Added HungerGame.cs commands
sphexator May 6, 2021
469dcc8
Minor change to eval command
sphexator May 6, 2021
3d78a51
Added advertisement commands
sphexator May 6, 2021
f891ac2
Switched to using HttpClientFactory
sphexator May 8, 2021
9c9cad6
Made collections inside cache private and added methods to add/update…
sphexator May 8, 2021
9a5d960
Minor changes in admin commands
sphexator May 8, 2021
0376c54
Added sudo command
sphexator May 8, 2021
64bbf3d
Added board commands
sphexator May 8, 2021
fb9e576
Added drop commands
sphexator May 8, 2021
0d271b0
Minor change in help command
sphexator May 8, 2021
ac27acd
Appended IModuleSetting.cs interface to setting modules
sphexator May 8, 2021
6c085f0
Minor change with cacheservice changes
sphexator May 8, 2021
0dc8197
Updated packages
sphexator May 8, 2021
4af8226
Updated nuget.config feeds with the correct disqord myget feed
sphexator May 8, 2021
545579d
Changes docker welp
sphexator May 8, 2021
3d84821
fix ulong to snowflake issues
sphexator May 8, 2021
79bc8a2
Add logger location to console logging format
sphexator May 8, 2021
c02ca0d
Added extension to grab emote ID from a emote message/reaction string
sphexator May 8, 2021
dfa7c3f
Merge pull request #133 from sphexator/master
sphexator May 8, 2021
7fb8583
Merge pull request #134 from sphexator/f-u-discord
sphexator May 8, 2021
0210fdb
Refactored filtermessages to use loops instead of linq
sphexator May 8, 2021
9af00da
Added suggestions module
sphexator May 10, 2021
57f0626
Added boost module
sphexator May 10, 2021
0dde439
Added logging module
sphexator May 10, 2021
b43aecd
Added mvp module
sphexator May 10, 2021
9bc418a
Added setting module module
sphexator May 10, 2021
90c47d7
Added welcome module
sphexator May 10, 2021
fc9a841
Added command ignore module
sphexator May 10, 2021
66ddc58
Added account module
sphexator May 10, 2021
2b94e35
Added economy module
sphexator May 10, 2021
7d181b1
Added rewards for mvp
sphexator May 10, 2021
cfd0bc4
Added webhooks to db configs + removed unused items
sphexator May 10, 2021
26bdb2d
remove unused items in DefaultConfig.cs
sphexator May 10, 2021
f1ece22
Split EventHandler.cs out to it's desired classes and used discordcli…
sphexator May 10, 2021
3600596
Added command ignore caching to caching service
sphexator May 10, 2021
26a04e5
Refactoring
sphexator May 10, 2021
44c41b7
Implement basic store commands
sphexator May 12, 2021
9cc8479
Item and inventory management reworked
sphexator May 12, 2021
e80aa0f
Updated packages and refactored
sphexator May 14, 2021
2f17e7d
Replaced Response with reply within commands
sphexator May 14, 2021
f452c2c
Added Report.cs module
sphexator May 14, 2021
2a996c3
Added Utility.cs module
sphexator May 14, 2021
4a45aed
Updated packages
sphexator May 22, 2021
2921b7c
Refactored, removed unused methods/classes/files
sphexator May 22, 2021
7b9d234
Added server info command
sphexator May 22, 2021
967801b
Added quotes commands
sphexator May 22, 2021
9ff968f
Added level commands
sphexator May 22, 2021
f5f5923
Added giveaway commands
sphexator May 22, 2021
d7e1187
Added store admin and gamble commands
sphexator May 22, 2021
5a3a8b1
Added voicerole service
sphexator May 22, 2021
76f109c
Added quartz scheduling
sphexator May 22, 2021
9250956
Replaced logging messages to webhooks
sphexator May 22, 2021
65aecbb
Added number and month formatting extension
sphexator May 22, 2021
8e81cfd
Added exp events
sphexator May 22, 2021
c7f89fa
Replaced all snowflake convertion to a global converter
sphexator May 22, 2021
e003704
Added webhook ids to logging cfg
sphexator May 22, 2021
bbd4616
Added quote and giveaway table changes
sphexator May 22, 2021
a081288
Add new migrations
sphexator May 22, 2021
b933415
help command fix
Kuukyo May 23, 2021
d5df7f4
BoardService.cs use webhook instead of regular messages
sphexator May 31, 2021
9139407
Renamed GetOrCreateWebhookClient extension with async affix
sphexator May 31, 2021
1ed2eb4
Added auto message
sphexator May 31, 2021
6aa4885
Checks on emote add url if it's a valid link or what's being download…
sphexator May 31, 2021
4d051a2
Changed welcome messages to use webhook instead
sphexator May 31, 2021
d41698a
Use server name on logging instead of discord name
sphexator Jun 12, 2021
0a0612f
Change the way fonts are found
sphexator Jun 12, 2021
9980618
Partly implemented club service
sphexator Jun 12, 2021
e5cd9af
Refactored club ranks enum
sphexator Jun 12, 2021
3c380d7
Updated packages
sphexator Jun 12, 2021
b388d27
Updated discord and command packages and reformatted the projected re…
sphexator Jun 12, 2021
f647ceb
Split DbService.cs into dedicated partial classes for better overview
sphexator Jun 26, 2021
5ba1eb7
Updated packages and adjusted for new breaking changes
sphexator Jun 27, 2021
27f8e82
Changes
sphexator Oct 12, 2021
e937ebc
Re-did Hunger Game database tables
sphexator Oct 13, 2021
9054852
Removed hunger games
sphexator Oct 18, 2021
9c96bb3
Updated db extensions
sphexator Oct 31, 2021
56c07a8
Cleanup and changed logger
sphexator Nov 20, 2021
3be5638
restructure
sphexator May 5, 2023
3b0ed48
boop
sphexator May 5, 2023
1a0e51a
Updated launchSettings.json
sphexator May 5, 2023
5c32762
Updated .gitignore
sphexator May 5, 2023
affa761
Removed hunger game project
sphexator May 5, 2023
5262d94
Added message prune and get channel methods to Bot interface
sphexator May 27, 2023
c5b732c
Added warning service and handlers
sphexator May 27, 2023
f416245
Partly implemented the administration commands
sphexator May 27, 2023
66244f1
Partly implemented image generation
sphexator May 27, 2023
34c70a8
Updated Dockerfile
sphexator May 27, 2023
6bee8a7
Added command metrics
sphexator May 28, 2023
0515ec9
Made mediatr request contracts into records and added metric interface
sphexator May 29, 2023
df2e404
Added command and mediatr metrics & deleted old Dockerfile
sphexator May 29, 2023
8dc1ca4
Added messaging methods to the bot interface and implemented
sphexator Jun 6, 2023
3ca2a4a
Extended Embed.cs
sphexator Jun 6, 2023
9a69620
Redid embed fields, instead of using tuple, use dedicated types
sphexator Jun 12, 2023
2e4a51c
Add moderation logs and db triggers
sphexator Jun 20, 2023
0817299
Add get auditlog method
sphexator Jun 20, 2023
5b7e883
Implemented user banned and unbanned events
sphexator Jun 30, 2023
ab6c5e8
Implemented role adjustment when leveling up
sphexator Jun 30, 2023
f9da90f
Added more properties to guild and discord member. Added response typ…
sphexator Jul 1, 2023
77e2fbc
Adjusted for new types and implemented admin commands
sphexator Jul 1, 2023
7de332b
Mapper for guild and discordmember
sphexator Jul 1, 2023
ba2be84
Made it so response maps to interactive response
sphexator Jul 1, 2023
a1d3a5c
Re-did mapper for textchannel
sphexator Jul 1, 2023
da062c7
Changed DiscordMember.cs userid to just Id
sphexator Jul 3, 2023
9271781
Changed response to admin commands.
sphexator Jul 3, 2023
8b78fdc
Changes I forgot I did while ago
sphexator Aug 26, 2023
e409f4d
Added some localization and minor club implementation
sphexator Aug 27, 2023
c0b6bfd
Minor comments and stuff
sphexator Sep 15, 2023
88945c5
Minor refactoring
sphexator Sep 24, 2023
5750e4e
re-added db extensions and minor cache interface implementations
sphexator Sep 24, 2023
ec1dd52
Removed async from caching interface
sphexator Sep 25, 2023
a214bc2
Refactoring
sphexator Sep 25, 2023
236d163
Added DeleteMessageAsync method to bot and return type to SendMessage…
sphexator Oct 20, 2023
7f66b38
Added DropConfig.cs
sphexator Oct 20, 2023
002ebe3
Added DropService.cs
sphexator Oct 20, 2023
cdd593a
Adjustment to LevelService.cs
sphexator Oct 20, 2023
ddd2604
Added Emote.cs entity and mapping
sphexator Oct 20, 2023
712db80
Added category to text channels
sphexator Oct 20, 2023
2185d92
Embed stuff and cache remove method
sphexator Oct 20, 2023
2200e49
Made LevelService.cs more testable
sphexator Oct 31, 2023
014a053
part test
sphexator Oct 31, 2023
98f3384
minor adjustments to make it more testable
sphexator Nov 3, 2023
cc7d980
bugfix
sphexator Nov 3, 2023
10be4e7
LevelService.UnitTest.cs
sphexator Nov 3, 2023
12351ed
Added json ignore attribute to reference object
sphexator Dec 28, 2023
a675d58
Made DropService.cs more testable
sphexator Dec 28, 2023
486c1a9
stuff
sphexator Dec 28, 2023
3f7aac8
removed useless UnitTest1.cs
sphexator Dec 28, 2023
de34ad3
project files cleanup along with upgrade to net8
sphexator Dec 29, 2023
e4add3c
Added metrics to commands
sphexator Dec 29, 2023
c1483ba
namespace adjustment
sphexator Dec 31, 2023
d667f3c
Added metrics (again)
sphexator Dec 31, 2023
9d16dcb
Bump SixLabors.ImageSharp from 3.0.1 to 3.1.3 in /Hanekawa.Application
dependabot[bot] Mar 5, 2024
31317ff
Merge pull request #136 from sphexator/dependabot/nuget/Hanekawa.Appl…
sphexator Mar 5, 2024
16fda91
many things
sphexator Mar 9, 2024
4f64ff9
Moved font files
sphexator Mar 10, 2024
3d0fd10
Updated packages and removed grpc package
sphexator Mar 10, 2024
f539e3d
remove grpc files
sphexator Mar 10, 2024
14be451
Added pagination building for paged responses
sphexator Mar 10, 2024
5fd4e11
minor changes
sphexator Mar 10, 2024
a76dda5
Added warning list handler
sphexator Mar 10, 2024
5599226
Added static slash command names
sphexator Mar 10, 2024
d8d2f91
adjusted for mediator to be scoped
sphexator Mar 10, 2024
f574880
Added topages mapper between domain to disqord
sphexator Mar 10, 2024
4314b8b
stuff
sphexator Mar 10, 2024
8b0a05a
Added ibot singleton
sphexator Mar 10, 2024
55e2402
Minor pagination changes
sphexator Mar 17, 2024
12f700a
Minor changes
sphexator Mar 17, 2024
a61f2e7
Semi-added account commands
sphexator Mar 17, 2024
989f26d
Added some ctrs to db users
sphexator Mar 29, 2024
21c1b82
Handler stuff
sphexator Mar 29, 2024
02564c2
image service stuff
sphexator Mar 29, 2024
ae1a53f
Registration stuff
sphexator Mar 29, 2024
2fdce17
extension and csproj stuff
sphexator Mar 29, 2024
56fd203
Commands things
sphexator Mar 29, 2024
0477ff7
minor mapping changes
sphexator Mar 30, 2024
63b26eb
space
sphexator Apr 6, 2024
e7a0388
minor extension change
sphexator Apr 13, 2024
c833dba
Bump SixLabors.ImageSharp from 3.1.3 to 3.1.4 in /Hanekawa.Application
dependabot[bot] Apr 15, 2024
bbf4947
Merge pull request #137 from sphexator/dependabot/nuget/Hanekawa.Appl…
sphexator Apr 17, 2024
0879488
Bump Npgsql from 8.0.2 to 8.0.3 in /Hanekawa.Infrastructure
dependabot[bot] May 9, 2024
e8ccf7c
Bump SixLabors.ImageSharp from 3.1.4 to 3.1.5 in /Hanekawa.Application
dependabot[bot] Jul 22, 2024
2bf0944
Merge pull request #139 from sphexator/dependabot/nuget/Hanekawa.Appl…
sphexator Aug 16, 2024
3e28e44
Merge pull request #138 from sphexator/dependabot/nuget/Hanekawa.Infr…
sphexator Aug 16, 2024
6dcc110
A lot of things
sphexator Dec 21, 2024
d6c9915
Minor fix changes
sphexator Dec 21, 2024
3171853
stuff
sphexator Dec 27, 2024
a561d78
Updated packages
sphexator Jan 1, 2025
6e5c711
messaging changes
sphexator Jan 3, 2025
39a6ee7
minor change
sphexator Jan 6, 2025
108d91c
checkin
sphexator Jan 12, 2025
b1ac6b4
Remove old solution file
sphexator Jan 15, 2025
0509625
Updated packages
sphexator Jan 15, 2025
45927ba
Remove redundant packages
sphexator Jan 15, 2025
df18626
move secrets
sphexator Jan 15, 2025
eef82a0
CI update
sphexator Jan 15, 2025
3adefd6
CI Update
sphexator Jan 15, 2025
ec8e85a
CI Update build command
sphexator Jan 15, 2025
02c4f97
CI Updates
sphexator Jan 15, 2025
e98d0d2
CI Update 999
sphexator Jan 15, 2025
01751c1
inventory things
sphexator Jan 18, 2025
0e2bfc2
stuff
sphexator Jan 19, 2025
ff06cf5
added cache and more inventory things
sphexator Jan 21, 2025
b156157
Ranking
sphexator Mar 21, 2025
ebe0c2c
Package update
sphexator Mar 21, 2025
3a31a2f
Test stuff
sphexator Mar 21, 2025
436e6f3
Added method to get dbconnection
sphexator Mar 21, 2025
1ca69a4
reduce image height of rank image
sphexator Mar 21, 2025
7e8256f
expand test user
sphexator Mar 21, 2025
4af39f9
minor refactor
sphexator Mar 21, 2025
3079a9f
All the things
sphexator Apr 1, 2025
953ff6e
Added various caching
sphexator Apr 1, 2025
8a7daf2
different things
sphexator Apr 1, 2025
edb2b9a
caching issues
sphexator Apr 5, 2025
6554cc5
Update EntityFrameworkCore packages to version 9.0.4
sphexator Apr 16, 2025
bb9ca6e
Remove outdated package references for Prometheus.Client.DependencyIn…
sphexator Apr 17, 2025
9e99d76
Refactor configuration classes to initialize properties and improve r…
sphexator Apr 17, 2025
dc898de
Enhance Response class to include success status and improve construc…
sphexator Apr 17, 2025
c1c51b3
Update GetWalletAsync method to return user currency instead of a stream
sphexator Apr 17, 2025
16bc811
Implement club management features: create, delete, list, join, leave…
sphexator Apr 17, 2025
bc423e4
Add club management entities and update response handling for messages
sphexator Apr 17, 2025
637be2b
Enhance wallet and profile response formatting with embeds and improv…
sphexator Apr 17, 2025
e5c3040
Fix cache entry type in DropService to use GuildUser for drop tracking
sphexator Apr 17, 2025
6536727
Removed file
sphexator Apr 18, 2025
be929df
Refactor inventory management: update Inventory model, add Item and I…
sphexator Apr 18, 2025
ad5d200
Refactor cache context and service: remove generic constraints from c…
sphexator Apr 18, 2025
61026dd
Rename test namespaces and files for consistency: update 'Hanekawa.Te…
sphexator Apr 18, 2025
2eaa64e
Refactor item service and inventory management: update namespace for …
sphexator Apr 18, 2025
7b226dd
Add Boost configuration and commands: implement BoostConfig model, cr…
sphexator May 2, 2025
82e5cd6
Add localization strings for Boost commands: implement BoostConfig, C…
sphexator May 25, 2025
3695681
Migrations
sphexator Jun 5, 2025
8ef7db2
Refactor DiscordMapper: streamline embed author and footer assignment…
sphexator Jun 5, 2025
bc24cbb
Update BoostCommands and Embed: set default Timestamp, rename List to…
sphexator Jun 5, 2025
46bcbff
Add Boost command service and localization: implement IBoostCommandSe…
sphexator Jun 5, 2025
ddbcf06
Add audit log retrieval methods: implement GetAuditLogAsync with acti…
sphexator Jun 8, 2025
dd34370
Update BoostCommands: change ListAsync return type to Response<GuildC…
sphexator Jun 8, 2025
e366199
Refactor DbService: improve formatting of ExecuteQuery method for bet…
sphexator Jun 8, 2025
9c705b0
Bump SixLabors.ImageSharp from 3.1.7 to 3.1.11
dependabot[bot] Jul 30, 2025
1802fb5
Merge pull request #142 from sphexator/dependabot/nuget/Hanekawa.Appl…
sphexator Aug 26, 2025
5824cf0
use ilogger instead of serilog logger
sphexator Aug 31, 2025
3edbe35
Refactor DbExtensions and HanaCommandException: streamline namespaces…
sphexator Sep 20, 2025
8c748f8
Refactor DiscordEventRegister: simplify null checks for GuildId
sphexator Sep 20, 2025
c668b47
Refactor AccountCommandService: introduce IAccountCommandService inte…
sphexator Sep 20, 2025
17c0be8
Add BotService: implement IBotService for guild join/leave handling
sphexator Sep 20, 2025
5921cd9
Register BotService in DependencyInjection and change its access modi…
sphexator Sep 20, 2025
0c226a9
Refactor BotService: change class to sealed for improved performance …
sphexator Sep 20, 2025
7c2bd92
Refactor config classes: change GuildId property to init-only for bet…
sphexator Sep 20, 2025
b85c4a1
Add ExecuteCommand method to DbService for executing SQL commands
sphexator Sep 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
23 changes: 14 additions & 9 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
**/.dockerignore
**/.dockerignore
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you do this

**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.idea
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/charts
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/Dockerfile
**/Dockerfile.develop
**/docker-compose.yml
**/docker-compose.*.yml
**/*.dbmdl
**/*.jfm
**/secrets.dev.yaml
**/values.dev.yaml
**/.toolstarget
LICENSE
README.md
/Hanekawa/Properties/launchSettings.json
46 changes: 46 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

[*.cs]
indent_style = space
indent_size = 4
tab_width = 2

[*]

# Microsoft .NET properties
csharp_new_line_before_members_in_object_initializers = false
csharp_preferred_modifier_order = internal, protected, private, public, file, new, static, sealed, virtual, abstract, override, readonly, extern, unsafe, volatile, async, required:suggestion
csharp_preserve_single_line_blocks = true
csharp_space_after_cast = true
dotnet_style_parentheses_in_arithmetic_binary_operators = never_if_unnecessary:none
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:none
dotnet_style_parentheses_in_relational_binary_operators = never_if_unnecessary:none

# ReSharper properties
resharper_arguments_skip_single = true
resharper_blank_lines_after_block_statements = 0
resharper_blank_lines_around_auto_property = 0
resharper_blank_lines_around_single_line_invocable = 0
resharper_blank_lines_around_single_line_type = 0
resharper_braces_for_for = required
resharper_braces_for_ifelse = not_required_for_both
resharper_braces_for_using = not_required
resharper_braces_redundant = false
resharper_continuous_indent_multiplier = 1
resharper_csharp_blank_lines_around_field = 0
resharper_csharp_blank_lines_around_invocable = 0
resharper_csharp_max_line_length = 135
resharper_csharp_remove_blank_lines_near_braces_in_declarations = false
resharper_csharp_wrap_ternary_expr_style = wrap_if_long
resharper_instance_members_qualify_declared_in =
resharper_keep_existing_enum_arrangement = false
resharper_max_initializer_elements_on_line = 2
resharper_parentheses_non_obvious_operations = none, shift, bitwise_and, bitwise_exclusive_or, bitwise_inclusive_or, bitwise
resharper_parentheses_redundancy_style = remove
resharper_parentheses_same_type_operations = true
resharper_place_expr_method_on_single_line = if_owner_is_single_line
resharper_place_simple_embedded_statement_on_same_line = if_owner_is_single_line
resharper_wrap_after_primary_constructor_declaration_lpar = false
resharper_wrap_arguments_style = wrap_if_long
resharper_wrap_chained_binary_expressions = wrap_if_long
resharper_wrap_object_and_collection_initializer_style = chop_if_long
resharper_wrap_primary_constructor_parameters_style = wrap_if_long
6 changes: 3 additions & 3 deletions .github/workflows/dockerpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100'
dotnet-version: '9.0.x'
- name: Build with dotnet
run: dotnet build --configuration Release
run: dotnet build Hanekawa.Bot --configuration Release

# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
Expand All @@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v2

- name: Build image
run: docker build . --file Hanekawa/Dockerfile --tag image
run: docker build . --file Hanekawa.Bot/Dockerfile --tag image

- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -260,4 +260,4 @@ paket-files/
__pycache__/
*.pyc
/Hanekawa/Properties/launchSettings.json
/Hanekawa.Web/Properties/launchSettings.json
/Hanekawa.Bot/Properties/launchSettings.json
61 changes: 0 additions & 61 deletions Hanekawa.AnimeSimulCast/Events/AsyncEvents.cs

This file was deleted.

27 changes: 0 additions & 27 deletions Hanekawa.AnimeSimulCast/Extensions/StringExtensions.cs

This file was deleted.

28 changes: 0 additions & 28 deletions Hanekawa.AnimeSimulCast/Hanekawa.AnimeSimulCast.csproj

This file was deleted.

15 changes: 15 additions & 0 deletions Hanekawa.Application/Contracts/Discord/Common/Ban.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Hanekawa.Application.Interfaces;
using Hanekawa.Entities;

namespace Hanekawa.Application.Contracts.Discord.Common;

public record Ban : IMessageSqs
{
public ulong GuildId { get; init; }
public ulong UserId { get; init; }
public ulong ModeratorId { get; init; }
public string Reason { get; init; } = string.Empty;
public int Days { get; init; } = 7;

public ProviderSource Source { get; init; } = ProviderSource.Discord;
}
14 changes: 14 additions & 0 deletions Hanekawa.Application/Contracts/Discord/Common/Kick.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Hanekawa.Application.Interfaces;
using Hanekawa.Entities;

namespace Hanekawa.Application.Contracts.Discord.Common;

public class Kick : IMessageSqs
{
public ulong GuildId { get; init; }
public ulong UserId { get; init; }
public ulong ModeratorId { get; init; }
public string Reason { get; init; } = string.Empty;

public ProviderSource Source { get; init; } = ProviderSource.Discord;
}
15 changes: 15 additions & 0 deletions Hanekawa.Application/Contracts/Discord/Common/Mute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Hanekawa.Application.Interfaces;
using Hanekawa.Entities;

namespace Hanekawa.Application.Contracts.Discord.Common;

public class Mute : IMessageSqs
{
public ulong GuildId { get; init; }
public ulong UserId { get; init; }
public ulong ModeratorId { get; init; }
public string Reason { get; init; } = string.Empty;
public TimeSpan Duration { get; init; } = TimeSpan.Zero;

public ProviderSource Source { get; init; } = ProviderSource.Discord;
}
15 changes: 15 additions & 0 deletions Hanekawa.Application/Contracts/Discord/Common/Prune.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using Hanekawa.Application.Interfaces;
using Hanekawa.Entities;

namespace Hanekawa.Application.Contracts.Discord.Common;

public class Prune : IMessageSqs
{
public ulong GuildId { get; init; }
public ulong UserId { get; init; }
public ulong ModeratorId { get; init; }
public string Reason { get; init; } = string.Empty;
public int Days { get; init; } = 7;

public ProviderSource Source { get; init; } = ProviderSource.Discord;
}
14 changes: 14 additions & 0 deletions Hanekawa.Application/Contracts/Discord/Common/Unban.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Hanekawa.Application.Interfaces;
using Hanekawa.Entities;

namespace Hanekawa.Application.Contracts.Discord.Common;

public class Unban : IMessageSqs
{
public ulong GuildId { get; init; }
public ulong UserId { get; init; }
public ulong ModeratorId { get; init; }
public string Reason { get; init; } = string.Empty;

public ProviderSource Source { get; init; } = ProviderSource.Discord;
}
14 changes: 14 additions & 0 deletions Hanekawa.Application/Contracts/Discord/Common/Unmute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using Hanekawa.Application.Interfaces;
using Hanekawa.Entities;

namespace Hanekawa.Application.Contracts.Discord.Common;

public class Unmute : IMessageSqs
{
public ulong GuildId { get; init; }
public ulong UserId { get; init; }
public ulong ModeratorId { get; init; }
public string Reason { get; init; } = string.Empty;

public ProviderSource Source { get; init; } = ProviderSource.Discord;
}
5 changes: 5 additions & 0 deletions Hanekawa.Application/Contracts/Discord/Services/BotLeave.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using Hanekawa.Application.Interfaces;

namespace Hanekawa.Application.Contracts.Discord.Services;

public record BotLeave(ulong GuildId) : INotificationSqs;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using Hanekawa.Application.Interfaces;

namespace Hanekawa.Application.Contracts.Discord.Services;

public record MessageDeleted
(ulong GuildId, ulong ChannelId, ulong AuthorId, ulong MessageId, string MessageContent) : INotificationSqs;
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using Hanekawa.Application.Interfaces;
using Hanekawa.Entities.Discord;

namespace Hanekawa.Application.Contracts.Discord.Services;

public record MessageReceived(ulong GuildId, ulong ChannelId, DiscordMember Member,
ulong MessageId, string? Message, DateTimeOffset CreatedAt) : INotificationSqs;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using Hanekawa.Application.Interfaces;

namespace Hanekawa.Application.Contracts.Discord.Services;

public record MessagesDeleted(ulong GuildId, ulong ChannelId, ulong[] AuthorId,
ulong[] MessageIds, string[] MessageContents) : INotificationSqs;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using Hanekawa.Application.Interfaces;

namespace Hanekawa.Application.Contracts.Discord.Services;

public record ReactionAdd(ulong GuildId, ulong ChannelId, ulong MessageId, ulong UserId, string? Emoji) : INotificationSqs;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using Hanekawa.Application.Interfaces;

namespace Hanekawa.Application.Contracts.Discord.Services;

public record ReactionCleared(ulong GuildId, ulong ChannelId, ulong MessageId) : INotificationSqs;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using Hanekawa.Application.Interfaces;

namespace Hanekawa.Application.Contracts.Discord.Services;

public record ReactionRemove(ulong GuildId, ulong ChannelId, ulong MessageId, ulong UserId, string? Emoji) : INotificationSqs;
9 changes: 9 additions & 0 deletions Hanekawa.Application/Contracts/Discord/Services/UserBanned.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Hanekawa.Application.Interfaces;
using Hanekawa.Entities.Discord;

namespace Hanekawa.Application.Contracts.Discord.Services;

public record UserBanned(DiscordMember Member) : INotificationSqs
{
public ulong GuildId { get; init; }
}
Loading
Loading