veldtech / miki-bot

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

Add Reputation Actions to User Service #658

Closed velddev closed 4 years ago

velddev commented 4 years ago

🆕 User service has GetUserReputationPointsAsync which gets the ReputationObject. 🆕 User service has GiveReputationAsync Which handles the database & cache logic for reputation now.

⚠️ Obsolete DiscordExtensions.GetUserAsync(...), Use e.GetGuild().FindUserAsync(...) instead. ⚠️ UserService.UpdateUserAsync and UserService.SaveAsync are both obsoleted due to it not abstracting the repository away.

⚙️ Added a base EntityTestBase that gets MikiDbContext by default