@Bot.event
async def on_command_error(ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
await ctx.channel.purge(limit = 1)
await ctx.send( f'{ctx.author.mention} ****Не корректное введние команды! Информацию можно посмотреть командой -help**** ', delete_after=45)
await ctx.send('https://cdn.discordapp.com/attachments/789968921432031272/796362246871711814/tenor_1.gif', delete_after=45)
elif isinstance(error, commands.MissingPermissions):
await ctx.channel.purge(limit = 1)
await ctx.send( f'{ctx.author.mention} ****У вас нет прав для использования этой команды! При следующей попытке выдачи любого наказания последует блокировка.****', delete_after=45)
await ctx.send('https://cdn.discordapp.com/attachments/789968921432031272/796362246871711814/tenor_1.gif', delete_after=45)
.nav__link{
color: orange!important;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="stylesheet" href="./index.css"> <!-- Подключать позже Bootstrap!!!!!!!!!!!!!!!! -->
create table types (
id int auto_increment primary key,
title varchar(255)
);
insert into types (title) values ('Одежда');
create table categories (
id int auto_increment primary key,
type_id int,
title varchar(255),
foreign key (type_id) references types(id)
);
insert into categories (type_id, title) values (1, 'Брюки'), (1, 'Рубашки');
create table goods (
id int auto_increment primary key,
category_id int,
title varchar(255),
foreign key goods_category (category_id) references categories(id)
);
insert into goods (category_id, title) values (1, 'Брюки мужские'), (2, 'Рубашка поло спорт');
select
goods.id,
types.title as type,
categories.title as category,
goods.title
from goods
join categories on goods.category_id = categories.id
join types on categories.type_id = types.id
;
Тут такое дело, встроеная Date не является классом как таковым, поэтому все неверные варианты убрал под спойлер
class ServerDate extends Date {
construcror(...args) {
super(...args);
if (args.length === 0) {
// если аргументов конструктора нет то получаем время от сервера
fetch("url роутера на сервере отдающего время в миллисекундах")
.then((response) => {
return response.json();
})
.then((data) => {
this.setTime(data.time)
})
}
}
}
const date = new ServerDate();
super(...args);
. Если да, то можно попробовать сделать такclass ServerDate extends Date {
construcror(...args) {
// super(...args);
if (args.length) {
this.setTime(Date.now());
}else{
// если аргументов конструктора нет то получаем время от сервера
fetch("url роутера на сервере отдающего время в миллисекундах")
.then((response) => {
return response.json();
})
.then((data) => {
this.setTime(data.time)
})
}
}
}
const date = new ServerDate();
console.log(date)
const date = new ServerDate();
будет содержать время клиента var parser = new DOMParser();
var doc = parser.parseFromString(stringContainingXMLSource, "application/xml");
Побеждает тот, у кого самый короткий код
eval(prompt())