Polly is a Discord bot used for polling messages, built on .Net Core 2.1 and written in C#.
This is a work in progress, lots of breaking changes might occur until an official release. This project is not ready for public use yet.
- .Net Core 2.1 SKD
Under the Polly\Properties
folder, you will find the settings.json
file containing Polly's Bot Token and the channel it will be working in.
The settings.json
file looks like this:
{
"Bot": {
"Name": "Polly",
"Token": "YourTokenHere",
"PollChannel": "YourTextChannelIDHere"
},
"ConnectionStrings": {
"SQLite": "YourSQLiteConnectionStringHere"
}
}
- Have a dedicated text channel on Discord where all messages sent by users can be voted on, because the bot will take those messages and add 👍🏻, 👎🏻 and 🤷 reactions to them.
- You will have to set the ID of thet dedicated text channel in the
settings.json
file, underPollChannel: ""
Navigate to the solution folder and execute this command using your prefered terminal:
> dotnet build [-c Release]
Add
-r win-x64
at the end to produce aPolly.exe
file alongside the generatedPolly.dll
Then to run, use:
> dotnet run --project .\Polly\Polly.csproj
MIT License
Copyright (c) 2018 TheKrystalShip
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.