฀
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
@𝑨𝒃𝒔𝒐𝒍𝒖𝒕𝒆 𝑪𝒂𝒓𝒏𝒂𝒈𝒆
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
oops
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
thank you @Retro @Ame @Abs
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
thank you sir, it worked
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
@Retro
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
is this how you do it?
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
.setContexts([0, 1]) // 0 = Guild, 1 = BotDM // Allow the slash command to work in both guilds and DMs .setIntegrationTypes([0,1]) // Enable integration as a slash command globally
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
hm
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
yes i have those settings set on the bot on the discord developer portal
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
try { // Register the slash command globally await client.application.commands.create( new SlashCommandBuilder() .setName('video') .setDescription('Get the video from an Instagram or TikTok post') .addStringOption(option => option.setName('url') .setDescription('The URL of the Instagram or TikTok post') .setRequired(true) ) );
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
in dms, other servers
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
how to make slash commands work globally
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
what im askin help for is
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
Yeah thats for the python script, i was jus tellin what the program does
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
only takes the url
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
please check
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
which is given by the bot.js script
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
all it does is grabs the url
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
import sys
import instaloader

# Get Instagram URL passed from the Node.js script
url = sys.argv[1]

# Initialize Instaloader
L = instaloader.Instaloader()

# Extract post from URL
try:
# Load the post using the URL
post = instaloader.Post.from_shortcode(L.context, url.split("/")[-2])

# Check if the post is a video
if post.is_video:
print(post.video_url) # This will print the video URL
else:
print("No video found for this post.")
except Exception as e:
print(f"Error: {e}")
import sys
import instaloader

# Get Instagram URL passed from the Node.js script
url = sys.argv[1]

# Initialize Instaloader
L = instaloader.Instaloader()

# Extract post from URL
try:
# Load the post using the URL
post = instaloader.Post.from_shortcode(L.context, url.split("/")[-2])

# Check if the post is a video
if post.is_video:
print(post.video_url) # This will print the video URL
else:
print("No video found for this post.")
except Exception as e:
print(f"Error: {e}")
47 replies
DIAdiscord.js - Imagine an app
Created by on 11/29/2024 in #djs-questions
How to make slash commands work globally (in other servers and in dms where bot is not presentt
How tho? because the script doesnt have anythin to do with the discord.js?
47 replies