mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
Added .shopadd cmd
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#nullable disable
|
||||
using Nadeko.Bot.Db.Models;
|
||||
using NadekoBot.Db.Models;
|
||||
|
||||
namespace NadekoBot.Services.Database.Models;
|
||||
|
3788
src/NadekoBot/Migrations/Mysql/20240423140608_shopcommands.Designer.cs
generated
Normal file
3788
src/NadekoBot/Migrations/Mysql/20240423140608_shopcommands.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
1362
src/NadekoBot/Migrations/Mysql/20240423140608_shopcommands.cs
Normal file
1362
src/NadekoBot/Migrations/Mysql/20240423140608_shopcommands.cs
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
3785
src/NadekoBot/Migrations/Postgresql/20240423140552_shopcommands.Designer.cs
generated
Normal file
3785
src/NadekoBot/Migrations/Postgresql/20240423140552_shopcommands.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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
2917
src/NadekoBot/Migrations/Sqlite/20240423113453_shopcommands.Designer.cs
generated
Normal file
2917
src/NadekoBot/Migrations/Sqlite/20240423113453_shopcommands.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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
@@ -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:
|
||||
|
@@ -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.",
|
||||
|
Reference in New Issue
Block a user