First commit
This commit is contained in:
commit
e681242e6e
455
.gitignore
vendored
Normal file
455
.gitignore
vendored
Normal file
@ -0,0 +1,455 @@
|
|||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
##
|
||||||
|
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.rsuser
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
|
*.userprefs
|
||||||
|
|
||||||
|
# Mono auto generated files
|
||||||
|
mono_crash.*
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
[Ww][Ii][Nn]32/
|
||||||
|
[Aa][Rr][Mm]/
|
||||||
|
[Aa][Rr][Mm]64/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
[Ll]og/
|
||||||
|
[Ll]ogs/
|
||||||
|
|
||||||
|
# Visual Studio 2015/2017 cache/options directory
|
||||||
|
.vs/
|
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
|
#wwwroot/
|
||||||
|
|
||||||
|
# Visual Studio 2017 auto generated files
|
||||||
|
Generated\ Files/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
# NUnit
|
||||||
|
*.VisualState.xml
|
||||||
|
TestResult.xml
|
||||||
|
nunit-*.xml
|
||||||
|
|
||||||
|
# Build Results of an ATL Project
|
||||||
|
[Dd]ebugPS/
|
||||||
|
[Rr]eleasePS/
|
||||||
|
dlldata.c
|
||||||
|
|
||||||
|
# Benchmark Results
|
||||||
|
BenchmarkDotNet.Artifacts/
|
||||||
|
|
||||||
|
# .NET Core
|
||||||
|
project.lock.json
|
||||||
|
project.fragment.lock.json
|
||||||
|
artifacts/
|
||||||
|
|
||||||
|
# Tye
|
||||||
|
.tye/
|
||||||
|
|
||||||
|
# ASP.NET Scaffolding
|
||||||
|
ScaffoldingReadMe.txt
|
||||||
|
|
||||||
|
# StyleCop
|
||||||
|
StyleCopReport.xml
|
||||||
|
|
||||||
|
# Files built by Visual Studio
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*_h.h
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.iobj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.ipdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*_wpftmp.csproj
|
||||||
|
*.log
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.svclog
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Chutzpah Test files
|
||||||
|
_Chutzpah*
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opendb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
*.VC.db
|
||||||
|
*.VC.VC.opendb
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
*.sap
|
||||||
|
|
||||||
|
# Visual Studio Trace Files
|
||||||
|
*.e2e
|
||||||
|
|
||||||
|
# TFS 2012 Local Workspace
|
||||||
|
$tf/
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
*.DotSettings.user
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# AxoCover is a Code Coverage Tool
|
||||||
|
.axoCover/*
|
||||||
|
!.axoCover/settings.json
|
||||||
|
|
||||||
|
# Coverlet is a free, cross platform Code Coverage Tool
|
||||||
|
coverage*.json
|
||||||
|
coverage*.xml
|
||||||
|
coverage*.info
|
||||||
|
|
||||||
|
# Visual Studio code coverage results
|
||||||
|
*.coverage
|
||||||
|
*.coveragexml
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
_NCrunch_*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
nCrunchTemp_*
|
||||||
|
|
||||||
|
# MightyMoose
|
||||||
|
*.mm.*
|
||||||
|
AutoTest.Net/
|
||||||
|
|
||||||
|
# Web workbench (sass)
|
||||||
|
.sass-cache/
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.azurePubxml
|
||||||
|
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||||
|
# but database connection strings (with potential passwords) will be unencrypted
|
||||||
|
*.pubxml
|
||||||
|
*.publishproj
|
||||||
|
|
||||||
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||||
|
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||||
|
# in these scripts will be unencrypted
|
||||||
|
PublishScripts/
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
*.nupkg
|
||||||
|
# NuGet Symbol Packages
|
||||||
|
*.snupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/[Pp]ackages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/[Pp]ackages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/[Pp]ackages/repositories.config
|
||||||
|
# NuGet v3's project.json files produces more ignorable files
|
||||||
|
*.nuget.props
|
||||||
|
*.nuget.targets
|
||||||
|
|
||||||
|
# Microsoft Azure Build Output
|
||||||
|
csx/
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Microsoft Azure Emulator
|
||||||
|
ecf/
|
||||||
|
rcf/
|
||||||
|
|
||||||
|
# Windows Store app package directories and files
|
||||||
|
AppPackages/
|
||||||
|
BundleArtifacts/
|
||||||
|
Package.StoreAssociation.xml
|
||||||
|
_pkginfo.txt
|
||||||
|
*.appx
|
||||||
|
*.appxbundle
|
||||||
|
*.appxupload
|
||||||
|
|
||||||
|
# Visual Studio cache files
|
||||||
|
# files ending in .cache can be ignored
|
||||||
|
*.[Cc]ache
|
||||||
|
# but keep track of directories ending in .cache
|
||||||
|
!?*.[Cc]ache/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
ClientBin/
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.dbproj.schemaview
|
||||||
|
*.jfm
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
orleans.codegen.cs
|
||||||
|
|
||||||
|
# Including strong name files can present a security risk
|
||||||
|
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||||
|
#*.snk
|
||||||
|
|
||||||
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||||
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||||
|
#bower_components/
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file
|
||||||
|
# to a newer Visual Studio version. Backup files are not needed,
|
||||||
|
# because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
ServiceFabricBackup/
|
||||||
|
*.rptproj.bak
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
*.mdf
|
||||||
|
*.ldf
|
||||||
|
*.ndf
|
||||||
|
|
||||||
|
# Business Intelligence projects
|
||||||
|
*.rdl.data
|
||||||
|
*.bim.layout
|
||||||
|
*.bim_*.settings
|
||||||
|
*.rptproj.rsuser
|
||||||
|
*- [Bb]ackup.rdl
|
||||||
|
*- [Bb]ackup ([0-9]).rdl
|
||||||
|
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||||
|
|
||||||
|
# Microsoft Fakes
|
||||||
|
FakesAssemblies/
|
||||||
|
|
||||||
|
# GhostDoc plugin setting file
|
||||||
|
*.GhostDoc.xml
|
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Visual Studio 6 build log
|
||||||
|
*.plg
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file
|
||||||
|
*.opt
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||||
|
*.vbw
|
||||||
|
|
||||||
|
# Visual Studio LightSwitch build output
|
||||||
|
**/*.HTMLClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/ModelManifest.xml
|
||||||
|
**/*.Server/GeneratedArtifacts
|
||||||
|
**/*.Server/ModelManifest.xml
|
||||||
|
_Pvt_Extensions
|
||||||
|
|
||||||
|
# Paket dependency manager
|
||||||
|
.paket/
|
||||||
|
paket-files/
|
||||||
|
|
||||||
|
|
||||||
|
# FAKE - F# Make
|
||||||
|
.fake/
|
||||||
|
|
||||||
|
# CodeRush personal settings
|
||||||
|
.cr/personal
|
||||||
|
|
||||||
|
# Python Tools for Visual Studio (PTVS)
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Cake - Uncomment if you are using it
|
||||||
|
# tools/**
|
||||||
|
# !tools/packages.config
|
||||||
|
|
||||||
|
# Tabs Studio
|
||||||
|
*.tss
|
||||||
|
|
||||||
|
# Telerik's JustMock configuration file
|
||||||
|
*.jmconfig
|
||||||
|
|
||||||
|
# BizTalk build output
|
||||||
|
*.btp.cs
|
||||||
|
*.btm.cs
|
||||||
|
*.odx.cs
|
||||||
|
*.xsd.cs
|
||||||
|
|
||||||
|
# OpenCover UI analysis results
|
||||||
|
OpenCover/
|
||||||
|
|
||||||
|
# Azure Stream Analytics local run output
|
||||||
|
ASALocalRun/
|
||||||
|
|
||||||
|
# MSBuild Binary and Structured Log
|
||||||
|
*.binlog
|
||||||
|
|
||||||
|
# NVidia Nsight GPU debugger configuration file
|
||||||
|
*.nvuser
|
||||||
|
|
||||||
|
# MFractors (Xamarin productivity tool) working folder
|
||||||
|
.mfractor/
|
||||||
|
|
||||||
|
# Local History for Visual Studio
|
||||||
|
.localhistory/
|
||||||
|
|
||||||
|
# BeatPulse healthcheck temp database
|
||||||
|
healthchecksdb
|
||||||
|
|
||||||
|
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||||
|
MigrationBackup/
|
||||||
|
|
||||||
|
# Ionide (cross platform F# VS Code tools) working folder
|
||||||
|
.ionide/
|
||||||
|
|
||||||
|
# Fody - auto-generated XML schema
|
||||||
|
FodyWeavers.xsd
|
||||||
|
|
||||||
|
##
|
||||||
|
## Visual studio for Mac
|
||||||
|
##
|
||||||
|
|
||||||
|
|
||||||
|
# globs
|
||||||
|
Makefile.in
|
||||||
|
*.userprefs
|
||||||
|
*.usertasks
|
||||||
|
config.make
|
||||||
|
config.status
|
||||||
|
aclocal.m4
|
||||||
|
install-sh
|
||||||
|
autom4te.cache/
|
||||||
|
*.tar.gz
|
||||||
|
tarballs/
|
||||||
|
test-results/
|
||||||
|
|
||||||
|
# Mac bundle stuff
|
||||||
|
*.dmg
|
||||||
|
*.app
|
||||||
|
|
||||||
|
# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
|
||||||
|
# General
|
||||||
|
.DS_Store
|
||||||
|
.AppleDouble
|
||||||
|
.LSOverride
|
||||||
|
|
||||||
|
# Icon must end with two \r
|
||||||
|
Icon
|
||||||
|
|
||||||
|
|
||||||
|
# Thumbnails
|
||||||
|
._*
|
||||||
|
|
||||||
|
# Files that might appear in the root of a volume
|
||||||
|
.DocumentRevisions-V100
|
||||||
|
.fseventsd
|
||||||
|
.Spotlight-V100
|
||||||
|
.TemporaryItems
|
||||||
|
.Trashes
|
||||||
|
.VolumeIcon.icns
|
||||||
|
.com.apple.timemachine.donotpresent
|
||||||
|
|
||||||
|
# Directories potentially created on remote AFP share
|
||||||
|
.AppleDB
|
||||||
|
.AppleDesktop
|
||||||
|
Network Trash Folder
|
||||||
|
Temporary Items
|
||||||
|
.apdisk
|
||||||
|
|
||||||
|
# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
|
||||||
|
# Windows thumbnail cache files
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
ehthumbs_vista.db
|
||||||
|
|
||||||
|
# Dump file
|
||||||
|
*.stackdump
|
||||||
|
|
||||||
|
# Folder config file
|
||||||
|
[Dd]esktop.ini
|
||||||
|
|
||||||
|
# Recycle Bin used on file shares
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Windows Installer files
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msix
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
# Windows shortcuts
|
||||||
|
*.lnk
|
||||||
|
|
||||||
|
# JetBrains Rider
|
||||||
|
.idea/
|
||||||
|
*.sln.iml
|
||||||
|
|
||||||
|
##
|
||||||
|
## Visual Studio Code
|
||||||
|
##
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
213
Program.fs
Normal file
213
Program.fs
Normal file
@ -0,0 +1,213 @@
|
|||||||
|
open System.Threading.Tasks
|
||||||
|
open DSharpPlus
|
||||||
|
open DSharpPlus.Entities
|
||||||
|
open DSharpPlus.SlashCommands
|
||||||
|
open DSharpPlus.CommandsNext
|
||||||
|
open DSharpPlus.CommandsNext.Attributes
|
||||||
|
open Emzi0767.Utilities
|
||||||
|
|
||||||
|
type Move =
|
||||||
|
| Rock
|
||||||
|
| Paper
|
||||||
|
| Scissor
|
||||||
|
|
||||||
|
type RoundResult =
|
||||||
|
| P1Win
|
||||||
|
| P2Win
|
||||||
|
| Draw
|
||||||
|
|
||||||
|
type Player =
|
||||||
|
{ name : string
|
||||||
|
health : string }
|
||||||
|
|
||||||
|
type Turn =
|
||||||
|
| WaitingForBoth
|
||||||
|
| WaitingForOne of Move
|
||||||
|
| WaitingForTwo of Move
|
||||||
|
| BothCompleted of Move * Move
|
||||||
|
|
||||||
|
type Match =
|
||||||
|
{ player1 : DiscordMember
|
||||||
|
player2 : DiscordMember
|
||||||
|
round : int
|
||||||
|
scorePlayer1 : int
|
||||||
|
scorePlayer2 : int
|
||||||
|
turn : Turn }
|
||||||
|
|
||||||
|
type JoeBot() =
|
||||||
|
inherit BaseCommandModule ()
|
||||||
|
|
||||||
|
let mutable currentMatch : Match option = None
|
||||||
|
|
||||||
|
[<Command "start-match">]
|
||||||
|
[<Description "Start a match between two players">]
|
||||||
|
member this.StartMatch (ctx : CommandContext, [<Description "Player 1">] player1 : DiscordMember, [<Description "Player 2">] player2 : DiscordMember) =
|
||||||
|
async {
|
||||||
|
do! ctx.TriggerTypingAsync() |> Async.AwaitTask
|
||||||
|
|
||||||
|
currentMatch <- Some {
|
||||||
|
player1 = player1
|
||||||
|
player2 = player2
|
||||||
|
round = 0
|
||||||
|
scorePlayer1 = 0
|
||||||
|
scorePlayer2 = 0
|
||||||
|
turn = WaitingForBoth
|
||||||
|
}
|
||||||
|
|
||||||
|
do! ctx.RespondAsync (sprintf "Match started between %s and %s. May the best hacker win!" player1.DisplayName player2.DisplayName)
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.Ignore
|
||||||
|
|
||||||
|
} |> Async.StartAsTask
|
||||||
|
:> Task
|
||||||
|
|
||||||
|
[<Command "send-move">]
|
||||||
|
[<Description "Challenge another member to combat">]
|
||||||
|
member this.SendMove (ctx : CommandContext, [<Description "The name of the move: rock, paper, or scissor">] moveString : string) =
|
||||||
|
async {
|
||||||
|
do! ctx.TriggerTypingAsync() |> Async.AwaitTask
|
||||||
|
|
||||||
|
let move =
|
||||||
|
match moveString.ToLower() with
|
||||||
|
| "rock" -> Some Rock
|
||||||
|
| "paper" -> Some Paper
|
||||||
|
| "scissor" -> Some Scissor
|
||||||
|
| _ -> None
|
||||||
|
|
||||||
|
match currentMatch , move with
|
||||||
|
| Some mtc , Some move ->
|
||||||
|
let updatedTurn =
|
||||||
|
match mtc.turn with
|
||||||
|
| WaitingForBoth ->
|
||||||
|
match ctx.Member with
|
||||||
|
| mem when mem = mtc.player1 -> WaitingForTwo move
|
||||||
|
| mem when mem = mtc.player2 -> WaitingForOne move
|
||||||
|
| _ -> mtc.turn
|
||||||
|
| WaitingForOne p1m ->
|
||||||
|
match ctx.Member with
|
||||||
|
| mem when mem = mtc.player1 -> BothCompleted ( p1m , move )
|
||||||
|
| mem when mem = mtc.player2 -> mtc.turn
|
||||||
|
| _ -> mtc.turn
|
||||||
|
| WaitingForTwo p2m ->
|
||||||
|
match ctx.Member with
|
||||||
|
| mem when mem = mtc.player1 -> mtc.turn
|
||||||
|
| mem when mem = mtc.player2 -> BothCompleted ( p2m , move )
|
||||||
|
| _ -> mtc.turn
|
||||||
|
| _ -> mtc.turn
|
||||||
|
|
||||||
|
match updatedTurn with
|
||||||
|
| BothCompleted ( p1m , p2m ) ->
|
||||||
|
let result =
|
||||||
|
match p1m , p2m with
|
||||||
|
| Rock , Paper -> P2Win
|
||||||
|
| Rock , Scissor -> P1Win
|
||||||
|
| Paper , Rock -> P1Win
|
||||||
|
| Paper , Scissor -> P2Win
|
||||||
|
| Scissor , Rock -> P2Win
|
||||||
|
| Scissor , Paper -> P1Win
|
||||||
|
| _ -> Draw
|
||||||
|
|
||||||
|
match result with
|
||||||
|
| P1Win | P2Win ->
|
||||||
|
let winner = match result with P1Win -> mtc.player1 | P2Win -> mtc.player2 | Draw -> mtc.player1
|
||||||
|
let message = $"{p1m} beats {p2m}! {winner} takes the round!"
|
||||||
|
do! ctx.RespondAsync message
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.Ignore
|
||||||
|
if mtc.round >= 5 then
|
||||||
|
let winnerScore = match result with P1Win -> mtc.scorePlayer1 | P2Win -> mtc.scorePlayer2 | Draw -> 0
|
||||||
|
let loserScore = match result with P1Win -> mtc.scorePlayer2 | P2Win -> mtc.scorePlayer1 | Draw -> 0
|
||||||
|
|
||||||
|
currentMatch <- None
|
||||||
|
|
||||||
|
do! ctx.RespondAsync $"{winner} wins the match {winnerScore} to {loserScore}! Awarding a 100 genz!"
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.Ignore
|
||||||
|
else
|
||||||
|
currentMatch <- Some
|
||||||
|
{ mtc with
|
||||||
|
round = mtc.round + 1
|
||||||
|
scorePlayer1 = mtc.scorePlayer1 + (match result with P1Win -> 1 | _ -> 0)
|
||||||
|
scorePlayer2 = mtc.scorePlayer2 + (match result with P2Win -> 1 | _ -> 0)
|
||||||
|
turn = updatedTurn
|
||||||
|
}
|
||||||
|
| Draw ->
|
||||||
|
do! ctx.RespondAsync $"{mtc.player1.DisplayName} and {mtc.player2.DisplayName} both did {p1m}. Round was a draw! Go again!"
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.Ignore
|
||||||
|
| _ ->
|
||||||
|
if updatedTurn <> mtc.turn then
|
||||||
|
do! ctx.RespondAsync ($"Move received by {ctx.Member.DisplayName}!")
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.Ignore
|
||||||
|
else
|
||||||
|
do! async{ return () }
|
||||||
|
|
||||||
|
| None , _ ->
|
||||||
|
do! ctx.RespondAsync ("No match has been found, please use the '/start-match' command and mention the two players")
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.Ignore
|
||||||
|
| _ , None ->
|
||||||
|
do! ctx.RespondAsync $"Could not recognize move '{moveString}', please try again. Valid moves are 'rock', 'paper', or 'scissor'"
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.Ignore
|
||||||
|
|
||||||
|
} |> Async.StartAsTask
|
||||||
|
:> Task
|
||||||
|
|
||||||
|
[<Command "get-status">]
|
||||||
|
[<Description "Challenge another member to combat">]
|
||||||
|
member this.Status (ctx : CommandContext) =
|
||||||
|
async {
|
||||||
|
do! ctx.TriggerTypingAsync() |> Async.AwaitTask
|
||||||
|
|
||||||
|
do! ctx.RespondAsync ("Status")
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.Ignore
|
||||||
|
|
||||||
|
} |> Async.StartAsTask
|
||||||
|
:> Task
|
||||||
|
|
||||||
|
[<Command "challenge">]
|
||||||
|
[<Description "Challenge another member to combat">]
|
||||||
|
member this.Challenge (ctx : CommandContext, [<Description "Who do you want to challenge?">] user : DiscordMember) =
|
||||||
|
async {
|
||||||
|
do! ctx.TriggerTypingAsync() |> Async.AwaitTask
|
||||||
|
|
||||||
|
|
||||||
|
do! ctx.RespondAsync (sprintf "Targeting %u" user.Id)
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.Ignore
|
||||||
|
|
||||||
|
} |> Async.StartAsTask
|
||||||
|
:> Task
|
||||||
|
|
||||||
|
let config = DiscordConfiguration()
|
||||||
|
config.Token <- "OTIyNDIyMDIyMTI1MDEwOTU1.YcBOcw.JxfW1CSIwEO7j6RbRFCnPZ-HoTk"
|
||||||
|
config.TokenType <- TokenType.Bot
|
||||||
|
|
||||||
|
let commandsConfig = CommandsNextConfiguration()
|
||||||
|
commandsConfig.StringPrefixes <- [ "/" ]
|
||||||
|
|
||||||
|
let client = new DiscordClient(config)
|
||||||
|
let slash = client.UseSlashCommands()
|
||||||
|
|
||||||
|
slash.add_SlashCommandExecuted(AsyncEventHandler<_,_>(
|
||||||
|
fun client e ->
|
||||||
|
async {
|
||||||
|
let builder = DiscordInteractionResponseBuilder()
|
||||||
|
builder.IsEphemeral <- true
|
||||||
|
builder.Content <- "Does this need to be filled out?"
|
||||||
|
return e.Context.CreateResponseAsync(InteractionResponseType.DeferredChannelMessageWithSource, builder)
|
||||||
|
} |> Async.StartAsTask :> Task))
|
||||||
|
|
||||||
|
//let commands = client.UseCommandsNext(commandsConfig)
|
||||||
|
//commands.RegisterCommands<JoeBot>()
|
||||||
|
|
||||||
|
client.ConnectAsync ()
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.RunSynchronously
|
||||||
|
|
||||||
|
Task.Delay(-1)
|
||||||
|
|> Async.AwaitTask
|
||||||
|
|> Async.RunSynchronously
|
12
discord-bot.fsproj
Normal file
12
discord-bot.fsproj
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<RootNamespace>discord_bot</RootNamespace>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Program.fs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project=".paket\Paket.Restore.targets" />
|
||||||
|
</Project>
|
0
joebot.org
Normal file
0
joebot.org
Normal file
9
paket.dependencies
Normal file
9
paket.dependencies
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
source https://api.nuget.org/v3/index.json
|
||||||
|
|
||||||
|
storage: none
|
||||||
|
framework: net6.0, netstandard2.0, netstandard2.1
|
||||||
|
|
||||||
|
nuget DSharpPlus >= 4.1.0
|
||||||
|
nuget DSharpPlus.CommandsNext >= 4.1.0
|
||||||
|
nuget DSharpPlus.SlashCommands >= 1.0.0
|
||||||
|
nuget FSharp.Core >= 6.0.0
|
452
paket.lock
Normal file
452
paket.lock
Normal file
@ -0,0 +1,452 @@
|
|||||||
|
STORAGE: NONE
|
||||||
|
RESTRICTION: || (== net6.0) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
NUGET
|
||||||
|
remote: https://api.nuget.org/v3/index.json
|
||||||
|
DSharpPlus (4.1)
|
||||||
|
Emzi0767.Common (>= 2.6.2)
|
||||||
|
Microsoft.Extensions.Logging.Abstractions (>= 5.0)
|
||||||
|
Newtonsoft.Json (>= 13.0.1)
|
||||||
|
System.Memory (>= 4.5.4)
|
||||||
|
System.Net.Http (>= 4.3.4)
|
||||||
|
System.Net.WebSockets (>= 4.3)
|
||||||
|
System.Net.WebSockets.Client (>= 4.3.2)
|
||||||
|
System.Runtime.InteropServices.RuntimeInformation (>= 4.3)
|
||||||
|
DSharpPlus.CommandsNext (4.1)
|
||||||
|
DSharpPlus (>= 4.1)
|
||||||
|
Microsoft.Extensions.DependencyInjection (>= 5.0.1)
|
||||||
|
DSharpPlus.SlashCommands (1.0)
|
||||||
|
DSharpPlus (>= 4.0.0-rc3)
|
||||||
|
Emzi0767.Common (2.6.2)
|
||||||
|
System.Collections.Immutable (>= 5.0)
|
||||||
|
System.Memory (>= 4.5.4)
|
||||||
|
System.Runtime.CompilerServices.Unsafe (>= 5.0)
|
||||||
|
System.ValueTuple (>= 4.5)
|
||||||
|
FSharp.Core (6.0.1)
|
||||||
|
Microsoft.Bcl.AsyncInterfaces (6.0) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0) (&& (== netstandard2.1) (>= net461))
|
||||||
|
System.Threading.Tasks.Extensions (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0) (&& (== netstandard2.1) (>= net461))
|
||||||
|
Microsoft.Extensions.DependencyInjection (6.0)
|
||||||
|
Microsoft.Bcl.AsyncInterfaces (>= 6.0) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0) (&& (== netstandard2.1) (>= net461))
|
||||||
|
Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0)
|
||||||
|
System.Runtime.CompilerServices.Unsafe (>= 6.0)
|
||||||
|
System.Threading.Tasks.Extensions (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0) (&& (== netstandard2.1) (>= net461))
|
||||||
|
Microsoft.Extensions.DependencyInjection.Abstractions (6.0)
|
||||||
|
Microsoft.Bcl.AsyncInterfaces (>= 6.0) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0) (&& (== netstandard2.1) (>= net461))
|
||||||
|
System.Threading.Tasks.Extensions (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0) (&& (== netstandard2.1) (>= net461))
|
||||||
|
Microsoft.Extensions.Logging.Abstractions (6.0)
|
||||||
|
System.Buffers (>= 4.5.1) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
System.Memory (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
Microsoft.NETCore.Platforms (6.0.1)
|
||||||
|
Microsoft.NETCore.Targets (5.0)
|
||||||
|
Microsoft.Win32.Primitives (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
Newtonsoft.Json (13.0.1)
|
||||||
|
runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.debian.9-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.fedora.27-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.fedora.28-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.native.System (4.3.1)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1.3)
|
||||||
|
runtime.native.System.Net.Http (4.3.1)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1.3)
|
||||||
|
runtime.native.System.Net.Security (4.3.1)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1.3)
|
||||||
|
runtime.native.System.Security.Cryptography.Apple (4.3.1)
|
||||||
|
runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple (>= 4.3.1)
|
||||||
|
runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.debian.9-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.fedora.27-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.fedora.28-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.opensuse.42.3-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.ubuntu.18.04-x64.runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.3)
|
||||||
|
runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.opensuse.42.3-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple (4.3.1)
|
||||||
|
runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
runtime.ubuntu.18.04-x64.runtime.native.System.Security.Cryptography.OpenSsl (4.3.3)
|
||||||
|
System.Buffers (4.5.1) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
System.Collections (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Collections.Concurrent (4.3)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.Diagnostics.Debug (>= 4.3)
|
||||||
|
System.Diagnostics.Tracing (>= 4.3)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.Reflection (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Threading (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.Collections.Immutable (6.0)
|
||||||
|
System.Memory (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
System.Runtime.CompilerServices.Unsafe (>= 6.0)
|
||||||
|
System.Diagnostics.Debug (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Diagnostics.DiagnosticSource (6.0)
|
||||||
|
System.Memory (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< net5.0)) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
System.Runtime.CompilerServices.Unsafe (>= 6.0)
|
||||||
|
System.Diagnostics.Tracing (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Formats.Asn1 (6.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= netcoreapp3.0)) (&& (== netstandard2.1) (>= netcoreapp3.0))
|
||||||
|
System.Globalization (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Globalization.Calendars (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Globalization.Extensions (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (>= 4.3)
|
||||||
|
System.IO (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Text.Encoding (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.IO.FileSystem (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.IO.FileSystem.Primitives (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Text.Encoding (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.IO.FileSystem.Primitives (4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Linq (4.3)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.Diagnostics.Debug (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Memory (4.5.4)
|
||||||
|
System.Buffers (>= 4.5.1) - restriction: || (&& (== net6.0) (>= monotouch)) (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (< netstandard1.1)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= xamarinios)) (&& (== net6.0) (>= xamarinmac)) (&& (== net6.0) (>= xamarintvos)) (&& (== net6.0) (>= xamarinwatchos)) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
System.Numerics.Vectors (>= 4.4) - restriction: || (&& (== net6.0) (< netcoreapp2.0)) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
System.Runtime.CompilerServices.Unsafe (>= 4.5.3) - restriction: || (&& (== net6.0) (>= monotouch)) (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (< netcoreapp2.1)) (&& (== net6.0) (< netstandard1.1)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= uap10.1)) (&& (== net6.0) (>= xamarinios)) (&& (== net6.0) (>= xamarinmac)) (&& (== net6.0) (>= xamarintvos)) (&& (== net6.0) (>= xamarinwatchos)) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
System.Net.Http (4.3.4)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1.1)
|
||||||
|
runtime.native.System (>= 4.3)
|
||||||
|
runtime.native.System.Net.Http (>= 4.3)
|
||||||
|
runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.2)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.Diagnostics.Debug (>= 4.3)
|
||||||
|
System.Diagnostics.DiagnosticSource (>= 4.3)
|
||||||
|
System.Diagnostics.Tracing (>= 4.3)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.Globalization.Extensions (>= 4.3)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.IO.FileSystem (>= 4.3)
|
||||||
|
System.Net.Primitives (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (>= 4.3)
|
||||||
|
System.Security.Cryptography.Algorithms (>= 4.3)
|
||||||
|
System.Security.Cryptography.Encoding (>= 4.3)
|
||||||
|
System.Security.Cryptography.OpenSsl (>= 4.3)
|
||||||
|
System.Security.Cryptography.Primitives (>= 4.3)
|
||||||
|
System.Security.Cryptography.X509Certificates (>= 4.3)
|
||||||
|
System.Text.Encoding (>= 4.3)
|
||||||
|
System.Threading (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.Net.NameResolution (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
runtime.native.System (>= 4.3)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.Diagnostics.Tracing (>= 4.3)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.Net.Primitives (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (>= 4.3)
|
||||||
|
System.Security.Principal.Windows (>= 4.3)
|
||||||
|
System.Threading (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.Net.Primitives (4.3.1)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1.3)
|
||||||
|
System.Runtime (>= 4.3.1)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Net.Security (4.3.2)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.Win32.Primitives (>= 4.3)
|
||||||
|
runtime.native.System (>= 4.3)
|
||||||
|
runtime.native.System.Net.Security (>= 4.3)
|
||||||
|
runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.2)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.Collections.Concurrent (>= 4.3)
|
||||||
|
System.Diagnostics.Tracing (>= 4.3)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.Globalization.Extensions (>= 4.3)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.Net.Primitives (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (>= 4.3)
|
||||||
|
System.Security.Claims (>= 4.3)
|
||||||
|
System.Security.Cryptography.Algorithms (>= 4.3)
|
||||||
|
System.Security.Cryptography.Encoding (>= 4.3)
|
||||||
|
System.Security.Cryptography.OpenSsl (>= 4.3)
|
||||||
|
System.Security.Cryptography.Primitives (>= 4.3)
|
||||||
|
System.Security.Cryptography.X509Certificates (>= 4.3)
|
||||||
|
System.Security.Principal (>= 4.3)
|
||||||
|
System.Text.Encoding (>= 4.3)
|
||||||
|
System.Threading (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.Threading.ThreadPool (>= 4.3)
|
||||||
|
System.Net.Sockets (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.Net.Primitives (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.Net.WebHeaderCollection (4.3)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Net.WebSockets (4.3)
|
||||||
|
Microsoft.Win32.Primitives (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.Net.WebSockets.Client (4.3.2)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.Win32.Primitives (>= 4.3)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.Diagnostics.Debug (>= 4.3)
|
||||||
|
System.Diagnostics.Tracing (>= 4.3)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.Net.NameResolution (>= 4.3)
|
||||||
|
System.Net.Primitives (>= 4.3)
|
||||||
|
System.Net.Security (>= 4.3)
|
||||||
|
System.Net.Sockets (>= 4.3)
|
||||||
|
System.Net.WebHeaderCollection (>= 4.3)
|
||||||
|
System.Net.WebSockets (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (>= 4.3)
|
||||||
|
System.Security.Cryptography.Algorithms (>= 4.3)
|
||||||
|
System.Security.Cryptography.Primitives (>= 4.3)
|
||||||
|
System.Security.Cryptography.X509Certificates (>= 4.3)
|
||||||
|
System.Text.Encoding (>= 4.3)
|
||||||
|
System.Text.Encoding.Extensions (>= 4.3)
|
||||||
|
System.Threading (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.Threading.Timer (>= 4.3)
|
||||||
|
System.Numerics.Vectors (4.5) - restriction: || (&& (== net6.0) (< netcoreapp2.0)) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
System.Reflection (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.Reflection.Primitives (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Reflection.Extensions (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Reflection (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Reflection.Primitives (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.Reflection (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime (4.3.1)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1.3)
|
||||||
|
System.Runtime.CompilerServices.Unsafe (6.0)
|
||||||
|
System.Runtime.Extensions (4.3.1)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1.3)
|
||||||
|
System.Runtime (>= 4.3.1)
|
||||||
|
System.Runtime.Handles (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Reflection (>= 4.3)
|
||||||
|
System.Reflection.Primitives (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Runtime.InteropServices.RuntimeInformation (4.3)
|
||||||
|
runtime.native.System (>= 4.3)
|
||||||
|
System.Reflection (>= 4.3)
|
||||||
|
System.Reflection.Extensions (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (>= 4.3)
|
||||||
|
System.Threading (>= 4.3)
|
||||||
|
System.Runtime.Numerics (4.3)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Security.Claims (4.3)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Security.Principal (>= 4.3)
|
||||||
|
System.Security.Cryptography.Algorithms (4.3.1)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
runtime.native.System.Security.Cryptography.Apple (>= 4.3.1)
|
||||||
|
runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.2)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (>= 4.3)
|
||||||
|
System.Runtime.Numerics (>= 4.3)
|
||||||
|
System.Security.Cryptography.Encoding (>= 4.3)
|
||||||
|
System.Security.Cryptography.Primitives (>= 4.3)
|
||||||
|
System.Text.Encoding (>= 4.3)
|
||||||
|
System.Security.Cryptography.Cng (5.0)
|
||||||
|
System.Formats.Asn1 (>= 5.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= netcoreapp3.0)) (&& (== netstandard2.1) (>= netcoreapp3.0))
|
||||||
|
System.Security.Cryptography.Csp (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.Reflection (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (>= 4.3)
|
||||||
|
System.Security.Cryptography.Algorithms (>= 4.3)
|
||||||
|
System.Security.Cryptography.Encoding (>= 4.3)
|
||||||
|
System.Security.Cryptography.Primitives (>= 4.3)
|
||||||
|
System.Text.Encoding (>= 4.3)
|
||||||
|
System.Threading (>= 4.3)
|
||||||
|
System.Security.Cryptography.Encoding (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.Collections.Concurrent (>= 4.3)
|
||||||
|
System.Linq (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (>= 4.3)
|
||||||
|
System.Security.Cryptography.Primitives (>= 4.3)
|
||||||
|
System.Text.Encoding (>= 4.3)
|
||||||
|
System.Security.Cryptography.OpenSsl (5.0)
|
||||||
|
System.Formats.Asn1 (>= 5.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= netcoreapp3.0)) (&& (== netstandard2.1) (>= netcoreapp3.0))
|
||||||
|
System.Security.Cryptography.Primitives (4.3)
|
||||||
|
System.Diagnostics.Debug (>= 4.3)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Threading (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.Security.Cryptography.X509Certificates (4.3.2)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
runtime.native.System (>= 4.3)
|
||||||
|
runtime.native.System.Net.Http (>= 4.3)
|
||||||
|
runtime.native.System.Security.Cryptography.OpenSsl (>= 4.3.2)
|
||||||
|
System.Collections (>= 4.3)
|
||||||
|
System.Diagnostics.Debug (>= 4.3)
|
||||||
|
System.Globalization (>= 4.3)
|
||||||
|
System.Globalization.Calendars (>= 4.3)
|
||||||
|
System.IO (>= 4.3)
|
||||||
|
System.IO.FileSystem (>= 4.3)
|
||||||
|
System.IO.FileSystem.Primitives (>= 4.3)
|
||||||
|
System.Resources.ResourceManager (>= 4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Extensions (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Runtime.InteropServices (>= 4.3)
|
||||||
|
System.Runtime.Numerics (>= 4.3)
|
||||||
|
System.Security.Cryptography.Algorithms (>= 4.3)
|
||||||
|
System.Security.Cryptography.Cng (>= 4.3)
|
||||||
|
System.Security.Cryptography.Csp (>= 4.3)
|
||||||
|
System.Security.Cryptography.Encoding (>= 4.3)
|
||||||
|
System.Security.Cryptography.OpenSsl (>= 4.3)
|
||||||
|
System.Security.Cryptography.Primitives (>= 4.3)
|
||||||
|
System.Text.Encoding (>= 4.3)
|
||||||
|
System.Threading (>= 4.3)
|
||||||
|
System.Security.Principal (4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Security.Principal.Windows (5.0)
|
||||||
|
System.Text.Encoding (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Text.Encoding.Extensions (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Text.Encoding (>= 4.3)
|
||||||
|
System.Threading (4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Threading.Tasks (>= 4.3)
|
||||||
|
System.Threading.Tasks (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Threading.Tasks.Extensions (4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0) (&& (== netstandard2.1) (>= net461))
|
||||||
|
System.Runtime.CompilerServices.Unsafe (>= 4.5.3) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.1)) (&& (== net6.0) (< netstandard1.0)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= wp8)) (== netstandard2.0) (== netstandard2.1)
|
||||||
|
System.Threading.ThreadPool (4.3)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.Runtime.Handles (>= 4.3)
|
||||||
|
System.Threading.Timer (4.3)
|
||||||
|
Microsoft.NETCore.Platforms (>= 1.1)
|
||||||
|
Microsoft.NETCore.Targets (>= 1.1)
|
||||||
|
System.Runtime (>= 4.3)
|
||||||
|
System.ValueTuple (4.5)
|
4
paket.references
Normal file
4
paket.references
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FSharp.Core
|
||||||
|
DSharpPlus
|
||||||
|
DSharpPlus.CommandsNext
|
||||||
|
DSharpPlus.SlashCommands
|
Loading…
x
Reference in New Issue
Block a user