Skip to content

Commit 0af97fc

Browse files
committed
init #30
1 parent bf6bbe6 commit 0af97fc

File tree

96 files changed

+182
-3871
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+182
-3871
lines changed

Dogey.sln

+17-34
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,39 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26228.9
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30002.166
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dogey", "src\Dogey\Dogey.csproj", "{49FF2687-974E-4ACE-A14C-35B2563F1428}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dogey", "src\Dogey\Dogey.csproj", "{9044D2B8-68F2-473A-82B7-FD53A9F68AAC}"
77
EndProject
8-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dogey.Core", "src\Dogey.Core\Dogey.Core.csproj", "{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Dogey.Core", "src\Dogey.Core\Dogey.Core.csproj", "{2B155E29-6C82-4E51-AF52-BC324C025B36}"
99
EndProject
10-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "solution items", "solution items", "{D134C16D-4581-47F0-A697-24A85B244C3A}"
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{829258BA-7B24-4588-BFFE-A5B2263CB466}"
1111
ProjectSection(SolutionItems) = preProject
12+
.gitignore = .gitignore
13+
dogey_banner_example.png = dogey_banner_example.png
14+
LICENSE = LICENSE
1215
README.md = README.md
1316
EndProjectSection
1417
EndProject
1518
Global
1619
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1720
Debug|Any CPU = Debug|Any CPU
18-
Debug|x64 = Debug|x64
19-
Debug|x86 = Debug|x86
2021
Release|Any CPU = Release|Any CPU
21-
Release|x64 = Release|x64
22-
Release|x86 = Release|x86
2322
EndGlobalSection
2423
GlobalSection(ProjectConfigurationPlatforms) = postSolution
25-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Debug|Any CPU.Build.0 = Debug|Any CPU
27-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Debug|x64.ActiveCfg = Debug|Any CPU
28-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Debug|x64.Build.0 = Debug|Any CPU
29-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Debug|x86.ActiveCfg = Debug|Any CPU
30-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Debug|x86.Build.0 = Debug|Any CPU
31-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Release|x64.ActiveCfg = Release|Any CPU
34-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Release|x64.Build.0 = Release|Any CPU
35-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Release|x86.ActiveCfg = Release|Any CPU
36-
{49FF2687-974E-4ACE-A14C-35B2563F1428}.Release|x86.Build.0 = Release|Any CPU
37-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Debug|x64.ActiveCfg = Debug|Any CPU
40-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Debug|x64.Build.0 = Debug|Any CPU
41-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Debug|x86.ActiveCfg = Debug|Any CPU
42-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Debug|x86.Build.0 = Debug|Any CPU
43-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
44-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Release|Any CPU.Build.0 = Release|Any CPU
45-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Release|x64.ActiveCfg = Release|Any CPU
46-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Release|x64.Build.0 = Release|Any CPU
47-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Release|x86.ActiveCfg = Release|Any CPU
48-
{DA51E047-98DC-4602-AECA-00E8F6BCC9AA}.Release|x86.Build.0 = Release|Any CPU
24+
{9044D2B8-68F2-473A-82B7-FD53A9F68AAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25+
{9044D2B8-68F2-473A-82B7-FD53A9F68AAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
26+
{9044D2B8-68F2-473A-82B7-FD53A9F68AAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
27+
{9044D2B8-68F2-473A-82B7-FD53A9F68AAC}.Release|Any CPU.Build.0 = Release|Any CPU
28+
{2B155E29-6C82-4E51-AF52-BC324C025B36}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{2B155E29-6C82-4E51-AF52-BC324C025B36}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{2B155E29-6C82-4E51-AF52-BC324C025B36}.Release|Any CPU.ActiveCfg = Release|Any CPU
31+
{2B155E29-6C82-4E51-AF52-BC324C025B36}.Release|Any CPU.Build.0 = Release|Any CPU
4932
EndGlobalSection
5033
GlobalSection(SolutionProperties) = preSolution
5134
HideSolutionNode = FALSE
5235
EndGlobalSection
5336
GlobalSection(ExtensibilityGlobals) = postSolution
54-
SolutionGuid = {C44D1F80-95B6-434E-AA76-5EBA2F74AA3B}
37+
SolutionGuid = {BD00E910-2742-48B1-BAA7-57AAFA499D25}
5538
EndGlobalSection
5639
EndGlobal

README.md

+1-50
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,6 @@
11
## Dogey
22
[![Discord](https://discordapp.com/api/guilds/158057120493862912/widget.png)](https://discord.gg/B4BwQ8r)
33

4-
Dogey is a bot [Discord](https://discordapp.com) built for managing a few servers I have set up. It also serves as a testing grounds for any good or bad ideas I might conjure up and feel like writing out a quick implementation. Currently undergoing it's 27th rewrite, I'm adding features as consistently as the motivation arises. [Click on this link right here to join my guild](https://discord.gg/B4BwQ8r).
5-
64
<p align="center">
75
<img src="dogey_banner_example.png">
8-
</p>
9-
10-
### What it do
11-
##### Live
12-
- **About**
13-
View various information about the bot
14-
- **Choose**
15-
Have the bot choose between some random options
16-
- **Dog**
17-
Grab a random dog image from the infinite void of the internet and post it in chat
18-
- **Google**
19-
Global and per site quering with google's custom search engine api
20-
- **Weather**
21-
Get some basic information about the weather in a city
22-
- **Youtube**
23-
Search youtube with a basic query
24-
- **CSharp**
25-
Evaluate a string of c# code
26-
- **Plonk**
27-
Ban users and guilds from using the bot
28-
- **Sudo**
29-
Execute commands as other users
30-
- **Config**
31-
Change guild settings, command prefix, currency name, enable/disable modules
32-
- **Numbers**
33-
Get (interesting?) facts about numbers and dates
34-
- **Nasa**
35-
Get the current or a previous Astronomy Picture of the Day
36-
- **Trivia**
37-
Answer questions on various topics and get points!
38-
- **Reaction Roles**
39-
Assign and remove roles based on reactions to a configured message
40-
- **Points**
41-
Earn an arbitrary amount of points based on message activity in a guild
42-
43-
##### Upcoming
44-
- **Points**
45-
Disable point earning in specified channels, set channel point modifiers, change the name of the currency.
46-
- **Store**
47-
Spend points on things like designated roles, guild invites, force nickname, and other chaotic things.
48-
- **Twitch**
49-
Make some of the features listed above work in twitch chat if possible, configure twitch notifications, edit channel from discord.
50-
- **Github**
51-
View a summary of issues, post a comment to an issue or commit, view recent commits, etc...
52-
53-
##### On Hold
54-
- **Web Dashboard**
55-
Make some of the features listed above configurable from a web page.
6+
</p>

nuget.config

-7
This file was deleted.

src/Dogey.Core/Commands/Attributes/RangeAttribute.cs

-128
This file was deleted.

src/Dogey.Core/Commands/DogeyCommandContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Discord.Commands;
33
using Discord.WebSocket;
44

5-
namespace Dogey
5+
namespace Dogey.Commands
66
{
77
public class DogeyCommandContext : ICommandContext
88
{
+8-21
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
11
using Discord;
22
using Discord.Commands;
3-
using Discord.Rest;
4-
using System.IO;
3+
using Dogey.Services;
54
using System.Threading.Tasks;
65

7-
namespace Dogey
6+
namespace Dogey.Commands
87
{
9-
public class DogeyModuleBase : ModuleBase<DogeyCommandContext>
8+
public abstract class DogeyModuleBase : ModuleBase<DogeyCommandContext>
109
{
11-
protected readonly RootController _root;
10+
protected readonly LocaleService _locale;
1211

13-
public DogeyModuleBase(RootController root)
12+
public DogeyModuleBase(LocaleService locale)
1413
{
15-
_root = root;
14+
_locale = locale;
1615
}
1716

18-
public async Task ReplySuccessAsync()
19-
=> await Context.Message.AddReactionAsync(await _root.GetSuccessEmojiAsync(Context.Guild, Context.Channel as IGuildChannel));
20-
21-
public Task<IUserMessage> ReplyEmbedAsync(Embed embed)
22-
=> ReplyAsync("", false, embed, null);
23-
public Task<IUserMessage> ReplyEmbedAsync(EmbedBuilder builder)
24-
=> ReplyAsync("", false, builder.Build(), null);
25-
26-
public Task ReplyReactionAsync(IEmote emote)
27-
=> Context.Message.AddReactionAsync(emote);
28-
29-
public Task<RestUserMessage> ReplyFileAsync(Stream stream, string fileName, string message = null)
30-
=> Context.Channel.SendFileAsync(stream, fileName, message, false, null);
31-
17+
public Task ReplyAsync(Embed embed, RequestOptions options = null)
18+
=> ReplyAsync("", false, embed, options);
3219
}
3320
}

src/Dogey.Core/Commands/Readers/EmoteTypeReader.cs

-17
This file was deleted.

src/Dogey.Core/Commands/Readers/GuildTypeReader.cs

-32
This file was deleted.

src/Dogey.Core/Commands/Readers/ModuleInfoTypeReader.cs

-20
This file was deleted.

0 commit comments

Comments
 (0)