refactor: vendor content as regular files (remove git submodules) so CI builds don't need GitHub auth

This commit is contained in:
asepharyana
2026-07-02 02:38:04 +07:00
parent 7b106fe562
commit 134674d7dd
452 changed files with 75011 additions and 4 deletions
+41
View File
@@ -0,0 +1,41 @@
const { Client, WebEmbed } = require('../src/index');
const client = new Client();
client.on('ready', async () => {
console.log(`${client.user.username} is ready!`);
});
client.on('messageCreate', message => {
if (message.content == 'embed_hidden_url') {
const embed = new WebEmbed()
.setAuthor({ name: 'hello', url: 'https://google.com' })
.setColor('RED')
.setDescription('description uh')
.setProvider({ name: 'provider', url: 'https://google.com' })
.setTitle('This is Title')
.setURL('https://google.com')
.setImage('https://i.ytimg.com/vi/iBP8HambzpY/maxresdefault.jpg')
.setRedirect('https://www.youtube.com/watch?v=iBP8HambzpY')
.setVideo('http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4');
message.channel.send({
content: `Hello world ${WebEmbed.hiddenEmbed}${embed}`,
});
}
if (message.content == 'embed') {
const embed = new WebEmbed()
.setAuthor({ name: 'hello', url: 'https://google.com' })
.setColor('RED')
.setDescription('description uh')
.setProvider({ name: 'provider', url: 'https://google.com' })
.setTitle('This is Title')
.setURL('https://google.com')
.setImage('https://i.ytimg.com/vi/iBP8HambzpY/maxresdefault.jpg')
.setRedirect('https://www.youtube.com/watch?v=iBP8HambzpY')
.setVideo('http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4');
message.channel.send({
content: `${embed}`,
});
}
});
client.login('token');