Added .shopadd cmd

This commit is contained in:
Kwoth
2024-04-23 14:18:30 +00:00
parent 1aebca14e1
commit 74690c73d6
22 changed files with 18474 additions and 6275 deletions

View File

@@ -1,4 +1,5 @@
#nullable disable
using Nadeko.Bot.Db.Models;
using NadekoBot.Db.Models;
namespace NadekoBot.Services.Database.Models;

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NadekoBot.Db.Migrations
{
/// <inheritdoc />
public partial class shopcommands : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "command",
table: "shopentry",
type: "text",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "command",
table: "shopentry");
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NadekoBot.Db.Migrations.Sqlite
{
/// <inheritdoc />
public partial class shopcommands : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Command",
table: "ShopEntry",
type: "TEXT",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Command",
table: "ShopEntry");
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -1751,9 +1751,14 @@ shop:
- ""
- "2"
shopadd:
desc: "Adds an item to the shop by specifying type price and name. Available types are role and list. 90% of currency from each purchase will be received by the user who added the item to the shop."
desc: |-
- Available types are role, list and command.
- If the item is a role, specify a role id or a role name.
- If the item is a command, specify the full command, replacing the user with %user% (for a mention) or %user.id% for user id.
90% of currency from each purchase will be received by the user who added the item to the shop.
args:
- "role 1000 Rich"
- "cmd 1000 .setrole %user% Rich"
shopremove:
desc: "Removes an item from the shop by its ID."
args:

View File

@@ -710,6 +710,7 @@
"shop_item_add": "Shop item added",
"shop_none": "No shop items found on this page.",
"shop_role": "You will get {0} role.",
"shop_command_invalid_context": "Unable to retrieve user, channel or server in order to execute the command.",
"type": "Type",
"gvc_disabled": "Game Voice Channel feature has been disabled on this server.",
"gvc_enabled": "{0} is a Game Voice Channel now.",