veldtech / miki-bot

Miki Discord Bot
https://miki.bot
149 stars 48 forks source link

Guild Bank Update #650

Closed Drummss closed 4 years ago

Drummss commented 4 years ago

This fixes an issue where the command would error if the user didn't already have a bank account for whatever guild they are depositing into.

todo[bot] commented 4 years ago

Create GuildUserService.

https://github.com/Mikibot/bot/blob/ebbfcd1c7a5f2b4ca262a1638dc79ad1d6b03c89/src/Miki/Modules/GuildAccounts/GuildAccountsModule.cs#L247-L252


This comment was generated by todo based on a TODO comment in ebbfcd1c7a5f2b4ca262a1638dc79ad1d6b03c89 in #650. cc @Mikibot.
todo[bot] commented 4 years ago

Add withdraw capability.

https://github.com/Mikibot/bot/blob/67ac05efdd53362d00a5dc85eb61478cd62133b3/src/Miki/Services/BankAccountService.cs#L60-L65


This comment was generated by todo based on a TODO comment in 67ac05efdd53362d00a5dc85eb61478cd62133b3 in #650. cc @Mikibot.
velddev commented 4 years ago

Codacy Here is an overview of what got changed by this pull request:


Issues
======
- Added 4

Complexity increasing per file
==============================
- src/Miki/Services/BankAccountService.cs  2
- test/Miki.Tests/Services/BankAccountServiceTests.cs  1
- src/Miki/Exceptions/BankAccountNullException.cs  1

See the complete overview on Codacy