-
Notifications
You must be signed in to change notification settings - Fork 0
Guild issue #9
Comments
use quotes, e.g. |
Still not working =/ - Still giving the same error : https://image.prntscr.com/image/R6jzyvUHQZat6YwV9R5OGQ.png |
What does the error say? I can't read it. |
System couldn't find the specified file |
Must be something specific to the windows command line. Google "how to send an argument with spaces in cmd.exe" and you'll likely find the answer. |
Oh sorry, didn't specify but I think its misinterpreting the double quotes as a file read. |
Tried with the 2 quotes but still persists. https://image.prntscr.com/image/ggZ8CZd3S6_zPoyRPDTJ4w.png |
Don't put a space between the quotes. |
sry for being annoying to you, I am newbie in this but already make this work |
Sorry, I've got no idea then. I'm not familiar with windows. Your best bet is to keep googling around or ask someone familiar with the windows command line. You could also try using the linux on windows sub system. |
Ok thanks :) and thanks for making this amazing script, this is really useful |
Can use another command line like the git cmd or something like that? I am noob with this sorry :/ |
I wrote a quick Go program to do this for you so you wouldn't need to use a shell. package main
import (
"os/exec"
"io"
"log"
"os"
)
func main() {
c := exec.Command("echo", "-email", "me@domain.com", "-pass", "secret", "-guild", "server", "-chan", "channel")
cmdStdout, err := c.StdoutPipe()
if err != nil {
log.Fatal(err)
}
cmdStderr, err := c.StderrPipe()
if err != nil {
log.Fatal(err)
}
err = c.Start()
go func() {
_, err := io.Copy(os.Stdout, cmdStdout)
if err != nil {
log.Fatal(err)
}
}()
_, err = io.Copy(os.Stderr, cmdStderr)
if err != nil {
log.Fatal(err)
}
} Just edit the details (pass, server etc) to fit what you need. |
That should fix your problem so I'm gonna close this issue. |
Created a new issue: https://image.prntscr.com/image/qO_iBZKWTLenyMV7gSrl7g.png |
PS: Sorry for reopening |
Oh, haha I missed a small detail. See where it says |
c := exec.Command("go run C:\Users-KikoGrilo\Desktop\rankbot-master\main.go", "-email", "kiko-grilo@hotmail.com", "-pass", "password", "-guild", "Eurovision Discord <3", "-chan", "bot_commands") Like this? |
No, first run |
not making it |
Ok, forget all of this. Delete that file. I'll make it more simple. Just edit the main.go in this repo. Change the following lines. Lines 11 to 18 in 072e50b
E.g. var (
email = "some email"
pass = "pass"
guild = "server"
channel = "channel"
message = "_"
interval = 60
) |
And then just |
ok var ( |
lol, I missed one more detail. Do the following instead var (
email = flag.String("email", "kiko-grilo@hotmail.com", "account email")
pass = flag.String("pass", "password", "account password")
guild = flag.String("guild", "Eurovision Discord <3", "guild (server) to join")
channel = flag.String("chan", "bot_channels", "channel to join")
message = flag.String("msg", "_", "message to be sent")
interval = flag.Int64("int", 60, "interval between messages in seconds")
) |
IT WORKED! just saying thank you for your amazing support and thanks for being nice to me since I am a big amateur in this programming world :) 👍 to you! |
Glad it worked out. |
Now you can close the thread 😂 |
Good Night, I am trying to use your project, and I made it work in a discord server with all the name together, but in a discord server with separate words like this example: 'Eurovision Discord <3' doesn't work, how I make this work in -guild?
The text was updated successfully, but these errors were encountered: